diff options
author | Yorhel <git@yorhel.nl> | 2009-09-04 08:20:32 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-09-04 08:20:32 +0200 |
commit | 3aec82f35e8202340560c2581856f2afcd1492f1 (patch) | |
tree | 8736821e1a96dbd43e8fa2054f07f046b52821c5 /lib | |
parent | e2af984679860cb388759e106586a63eccee6087 (diff) |
L10N: Converted Handler::ULists
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm index f01d0db2..8e6c4744 100644 --- a/lib/VNDB/Handler/ULists.pm +++ b/lib/VNDB/Handler/ULists.pm @@ -129,19 +129,19 @@ sub wishlist { page => $f->{p}, ); - my $title = $own ? 'My wishlist' : "\u$u->{username}'s wishlist"; + my $title = $own ? mt('_wishlist_title_my') : mt('_wishlist_title_other', $u->{username}); $self->htmlHeader(title => $title, noindex => 1); $self->htmlMainTabs('u', $u, 'wish'); div class => 'mainbox'; h1 $title; if(!@$list && $f->{f} == -1) { - p 'Wishlist empty...'; + p mt '_wishlist_noresults'; end; return $self->htmlFooter; } p class => 'browseopts'; a $f->{f} == $_ ? (class => 'optselected') : (), href => "/u$uid/wish?f=$_", - $_ == -1 ? 'All priorities' : ucfirst $self->{wishlist_status}[$_] + $_ == -1 ? mt '_wishlist_prio_all' : ucfirst $self->{wishlist_status}[$_] for (-1..$#{$self->{wishlist_status}}); end; end; @@ -157,9 +157,9 @@ sub wishlist { pageurl => "/u$uid/wish?f=$f->{f};o=$f->{o};s=$f->{s}", sorturl => "/u$uid/wish?f=$f->{f}", header => [ - [ Title => 'title' ], - [ Priority => 'wstat' ], - [ Added => 'added' ], + [ mt('_wishlist_col_title') => 'title' ], + [ mt('_wishlist_col_prio') => 'wstat' ], + [ mt('_wishlist_col_added') => 'added' ], ], row => sub { my($s, $n, $i) = @_; @@ -177,12 +177,12 @@ sub wishlist { Tr; td colspan => 3; Select name => 'batchedit', id => 'batchedit'; - option '-- with selected --'; - optgroup label => 'Change priority'; + option mt '_wishlist_select'; + optgroup label => mt '_wishlist_changeprio'; option value => $_, $self->{wishlist_status}[$_] for (0..$#{$self->{wishlist_status}}); end; - option value => -1, 'remove from wishlist'; + option value => -1, mt '_wishlist_remove'; end; end; end; @@ -234,7 +234,7 @@ sub vnlist { $f->{c} ne 'all' ? (char => $f->{c}) : (), ); - my $title = $own ? 'My visual novel list' : "\u$u->{username}'s visual novel list"; + my $title = $own ? mt '_rlist_title_my' : mt '_rlist_title_other', $u->{username}; $self->htmlHeader(title => $title, noindex => 1); $self->htmlMainTabs('u', $u, 'list'); @@ -260,9 +260,9 @@ sub vnlist { } end; p class => 'browseopts'; - a href => $url->(v => 0), 0 == $f->{v} ? (class => 'optselected') : (), 'All'; - a href => $url->(v => 1), 1 == $f->{v} ? (class => 'optselected') : (), 'Only voted'; - a href => $url->(v => -1), -1 == $f->{v} ? (class => 'optselected') : (), 'Hide voted'; + a href => $url->(v => 0), 0 == $f->{v} ? (class => 'optselected') : (), mt '_rlist_voted_all'; + a href => $url->(v => 1), 1 == $f->{v} ? (class => 'optselected') : (), mt '_rlist_voted_only'; + a href => $url->(v => -1), -1 == $f->{v} ? (class => 'optselected') : (), mt '_rlist_voted_none'; end; end; @@ -284,12 +284,11 @@ sub _vnlist_browse { sorturl => $url->(), pageurl => $url->('page'), header => [ - [ Title => 'title', 3 ], - sub { td class => 'tc2', id => 'relhidall'; lit '<i>▸</i>Releases*'; end; }, - [ Vote => 'vote' ], + [ mt('_rlist_col_title') => 'title', 3 ], + sub { td class => 'tc2', id => 'relhidall'; lit '<i>▸</i>'.mt('_rlist_col_releases').'*'; end; }, + [ mt('_rlist_col_vote') => 'vote' ], ], row => sub { - my($s, $n, $i) = @_; Tr $n % 2 == 0 ? (class => 'odd') : (); td class => 'tc1', colspan => 3; @@ -316,7 +315,7 @@ sub _vnlist_browse { end; td class => 'tc2'; cssicon "lang $_", mt "_lang_$_" for @{$_->{languages}}; - cssicon "rt$_->{type}", mt("_rtype_$_->{type}").' release'; + cssicon "rt$_->{type}", mt "_rtype_$_->{type}"; end; td class => 'tc3'; a href => "/r$_->{rid}", title => $_->{original}||$_->{title}, shorten $_->{title}, 50; @@ -332,19 +331,19 @@ sub _vnlist_browse { Tr; td class => 'tc1', colspan => 3; Select id => 'batchedit', name => 'batchedit'; - option '- with selected -'; - optgroup label => 'Change release status'; + option mt '_rlist_selection'; + optgroup label => mt '_rlist_changerel'; option value => "r$_", $self->{vn_rstat}[$_] for (0..$#{$self->{vn_rstat}}); end; - optgroup label => 'Change play status'; + optgroup label => mt '_rlist_changeplay'; option value => "v$_", $self->{vn_vstat}[$_] for (0..$#{$self->{vn_vstat}}); end; - option value => 'del', 'remove from list'; + option value => 'del', mt '_rlist_del'; end; end; - td class => 'tc2', colspan => 2, '* Obtained/finished/total'; + td class => 'tc2', colspan => 2, mt '_rlist_releasenote'; end; }) : (), ); |