summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNBrowse.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-09-05 12:54:06 +0200
committerYorhel <git@yorhel.nl>2009-09-05 12:54:06 +0200
commitf9727660df7590e93d2d929a70fd0dc41dd0ff2f (patch)
tree1c3fe323b8eeb9be63a390e1eb4cae371b2e2099 /lib/VNDB/Handler/VNBrowse.pm
parent100aacc1c951a3ebb53c8d81e20d6d9a290d1fc1 (diff)
L10N: Converted Handler::VNBrowse and Handler::VNEdit
Diffstat (limited to 'lib/VNDB/Handler/VNBrowse.pm')
-rw-r--r--lib/VNDB/Handler/VNBrowse.pm41
1 files changed, 22 insertions, 19 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm
index e11a2942..ab3d02b2 100644
--- a/lib/VNDB/Handler/VNBrowse.pm
+++ b/lib/VNDB/Handler/VNBrowse.pm
@@ -70,7 +70,7 @@ sub list {
$self->resRedirect('/v'.$list->[0]{id}, 'temp')
if $f->{q} && @$list == 1;
- $self->htmlHeader(title => 'Browse visual novels', search => $f->{q}, js => 'forms');
+ $self->htmlHeader(title => mt('_vnbrowse_title'), search => $f->{q}, js => 'forms');
_filters($self, $f, $char, \@ignored);
my $url = "/v/$char?q=$f->{q};ti=$f->{ti};te=$f->{te}";
@@ -84,12 +84,12 @@ sub list {
pageurl => "$url;o=$f->{o};s=$f->{s}",
sorturl => $url,
header => [
- @ti ? [ 'Score', 'tagscore', undef, 'tc_s' ] : (),
- [ 'Title', 'title', undef, @ti ? 'tc_t' : 'tc1' ],
- [ '', 0, undef, 'tc2' ],
- [ '', 0, undef, 'tc3' ],
- [ 'Released', 'rel', undef, 'tc4' ],
- [ 'Popularity', 'pop', undef, 'tc5' ],
+ @ti ? [ mt('_vnbrowse_col_score'), 'tagscore', undef, 'tc_s' ] : (),
+ [ mt('_vnbrowse_col_title'), 'title', undef, @ti ? 'tc_t' : 'tc1' ],
+ [ '', 0, undef, 'tc2' ],
+ [ '', 0, undef, 'tc3' ],
+ [ mt('_vnbrowse_col_released'), 'rel', undef, 'tc4' ],
+ [ mt('_vnbrowse_col_popularity'), 'pop', undef, 'tc5' ],
],
row => sub {
my($s, $n, $l) = @_;
@@ -126,7 +126,7 @@ sub _filters {
form action => '/v/all', 'accept-charset' => 'UTF-8', method => 'get';
div class => 'mainbox';
- h1 'Browse visual novels';
+ h1 mt '_vnbrowse_title';
$self->htmlSearchBox('v', $f->{q});
p class => 'browseopts';
for ('all', 'a'..'z', 0) {
@@ -136,29 +136,31 @@ sub _filters {
if(@$ign) {
div class => 'warning';
- h2 'The following tags were ignored:';
+ h2 mt '_vnbrowse_tagign_title';
ul;
- li $_->[0].' ('.($_->[1]?"can't filter on meta tags":"no such tag found").')' for @$ign;
+ li $_->[0].' ('.mt('_vnbrowse_tagign_'.($_->[1]?'meta':'notfound')).')' for @$ign;
end;
end;
}
a id => 'advselect', href => '#';
- lit '<i>&#9656;</i> advanced search';
+ lit '<i>&#9656;</i> '.mt('_vnbrowse_advsearch');
end;
div id => 'advoptions', class => 'hidden vnoptions';
h2;
- lit 'Tag filters <b>(boolean and, selecting more gives less results)</b>';
+ txt mt '_vnbrowse_tags';
+ b ' ('.mt('_vnbrowse_booland').')';
end;
table class => 'formtable', style => 'margin-left: 0';
- $self->htmlFormPart($f, [ input => short => 'ti', name => 'Tags to include', width => 350 ]);
- $self->htmlFormPart($f, [ radio => short => 'sp', name => '', options => [[0,'Hide spoilers'],[1,'Show minor spoilers'],[2,'Show major spoilers']]]);
- $self->htmlFormPart($f, [ input => short => 'te', name => 'Tags to exclude', width => 350 ]);
+ $self->htmlFormPart($f, [ input => short => 'ti', name => mt('_vnbrowse_taginc'), width => 350 ]);
+ $self->htmlFormPart($f, [ radio => short => 'sp', name => '', options => [map [$_, mt '_vnbrowse_spoil'.$_], 0..2]]);
+ $self->htmlFormPart($f, [ input => short => 'te', name => mt('_vnbrowse_tagexc'), width => 350 ]);
end;
h2;
- lit 'Languages <b>(boolean or, selecting more gives more results)</b>';
+ txt mt '_vnbrowse_lang';
+ b ' ('.mt('_vnbrowse_boolor').')';
end;
for my $i (sort @{$self->dbLanguages}) {
span;
@@ -172,7 +174,8 @@ sub _filters {
}
h2;
- lit 'Platforms <b>(boolean or, selecting more gives more results)</b>';
+ txt mt '_vnbrowse_plat';
+ b ' ('.mt('_vnbrowse_boolor').')';
end;
for my $i (sort @{$self->{platforms}}) {
next if $i eq 'oth';
@@ -187,8 +190,8 @@ sub _filters {
}
div style => 'text-align: center; clear: left;';
- input type => 'submit', value => 'Apply', class => 'submit';
- input type => 'reset', value => 'Clear', class => 'submit', onclick => 'location.href="/v/all"';
+ input type => 'submit', value => mt('_vnbrowse_apply'), class => 'submit';
+ input type => 'reset', value => mt('_vnbrowse_clear'), class => 'submit', onclick => 'location.href="/v/all"';
end;
end;
end;