summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r--lib/VNDB/Util/Auth.pm2
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm4
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;