From 3aec82f35e8202340560c2581856f2afcd1492f1 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 4 Sep 2009 08:20:32 +0200 Subject: L10N: Converted Handler::ULists --- data/lang.txt | 106 +++++++++++++++++++++++++++++++++++++++++++++ lib/VNDB/Handler/ULists.pm | 45 ++++++++++--------- 2 files changed, 128 insertions(+), 23 deletions(-) diff --git a/data/lang.txt b/data/lang.txt index f8d9a056..db530513 100644 --- a/data/lang.txt +++ b/data/lang.txt @@ -1943,6 +1943,112 @@ ru*: +############################################################################# +## Personal User Lists ## +############################################################################# +# Handler::ULists + + +# Wishlist (/u+/wish) + +:_wishlist_title_my +en : My wishlist +ru*: + +:_wishlist_title_other +en : [_1]'s wishlist +ru*: + +:_wishlist_noresults +en : Wishlist empty... +ru*: + +:_wishlist_prio_all +en : All priorities +ru*: + +:_wishlist_col_title +en : Title +ru*: + +:_wishlist_col_prio +en : Priority +ru*: + +:_wishlist_col_added +en : Added +ru*: + +:_wishlist_select +en : -- with selected -- +ru*: + +:_wishlist_changeprio +en : Change priority +ru*: + +:_wishlist_remove +en : remove from wishlist +ru*: + + +# VN list (/u+/list) + +:_rlist_title_my +en : My visual novel list +ru*: + +:_rlist_title_other +en : [_1]'s visual novel list +ru*: + +:_rlist_voted_all +en : All +ru*: + +:_rlist_voted_only +en : Only voted +ru*: + +:_rlist_voted_none +en : Hide voted +ru*: + +:_rlist_col_title +en : Title +ru*: + +:_rlist_col_releases +en : Releases +ru*: + +:_rlist_col_vote +en : Vote +ru*: + +:_rlist_selection +en : -- with selected -- +ru*: + +:_rlist_changerel +en : Change release status +ru*: + +:_rlist_changeplay +en : Change play status +ru*: + +:_rlist_del +en : remove from list +ru*: + +:_rlist_releasenote +en : * Obtained/finished/total +ru*: + + + + ############################################################################# ## Misc. messages ## ############################################################################# 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 'Releases*'; end; }, - [ Vote => 'vote' ], + [ mt('_rlist_col_title') => 'title', 3 ], + sub { td class => 'tc2', id => 'relhidall'; lit ''.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; }) : (), ); -- cgit v1.2.3