diff options
author | Yorhel <git@yorhel.nl> | 2009-08-16 11:07:38 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-17 16:27:15 +0200 |
commit | 596714f864c09d752fc3c72177afaa0138020d6f (patch) | |
tree | 9409a0aeb6a75c54f0b853456589e5cc2c651c9f /lib/VNDB/Util | |
parent | 5684e4821c0e0bdffa523e886e6644649e8f519a (diff) |
L10N: Converted user ranks and language names
User ranks are easy... but the language names are used everywhere!
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r-- | lib/VNDB/Util/Auth.pm | 2 | ||||
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index ad225d92..c4daffd9 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -83,7 +83,7 @@ sub authInfo { sub authCan { my($self, $act) = @_; my $r = $self->{_auth}{rank}||0; - return scalar grep $_ eq $act, @{$self->{user_ranks}[$r]}[1..$#{$self->{user_ranks}[$r]}]; + return scalar grep $_ eq $act, @{$self->{user_ranks}[$r]}[0..$#{$self->{user_ranks}[$r]}]; } diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index e0333b93..8bc08a1f 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -58,7 +58,7 @@ sub _menu { span; for (grep $self->{l10n}->language_tag() ne $_, $self->{l10n}->languages()) { a href => "?l10n=$_"; - cssicon "lang $_", $self->{languages}{$_}; + cssicon "lang $_", mt "_lang_$_"; # NOTE: should actually be in the destination language... end; } end; @@ -92,7 +92,7 @@ sub _menu { h2; a href => $uid, ucfirst $self->authInfo->{username}; # note: user ranks aren't TL'ed (but might be in the future, hmm) - txt ' ('.$self->{user_ranks}[$self->authInfo->{rank}][0].')'; + txt ' ('.mt('_urank_'.$self->authInfo->{rank}).')'; end; div; a href => "$uid/edit", mt '_menu_myprofile'; br; |