summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-19 14:55:50 +0200
committerYorhel <git@yorhel.nl>2009-08-19 14:55:50 +0200
commita4409299f9fc21e2cb6d544234772f7962b0a74c (patch)
treef15471be080c651c70e578ab946ab6876573791f
parent6a3c2d2de25b9cf7893eb105b50fcbeb6bec8896 (diff)
L10N: Converted Handler::Releases::browse
This finishes Handler::Releases
-rw-r--r--data/lang.txt125
-rw-r--r--lib/VNDB/Handler/Releases.pm64
2 files changed, 157 insertions, 32 deletions
diff --git a/data/lang.txt b/data/lang.txt
index 73a0b8d9..64183a25 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -1427,6 +1427,131 @@ en : Add visual novel
ru*:
+# Release browser
+
+:_rbrowse_title
+en : Browse releases
+ru*:
+
+:_rbrowse_col_released
+en : Released
+ru*:
+
+:_rbrowse_col_minage
+en : Rating
+ru*:
+
+:_rbrowse_col_title
+en : Title
+ru*:
+
+:_rbrowse_noresults_title
+en : No results found
+ru*:
+
+:_rbrowse_noresults_msg
+en : Sorry, couldn't find anything that comes through your filters. You might want to disable a few filters to get more results.
+
+ Also, keep in mind that we don't have all information about all releases. So e.g. filtering on screen resolution will exclude all releases of which we don't know it's resolution, even though it might in fact be in the resolution you're looking for.
+ru*:
+
+:_rbrowse_filters
+en : Filters
+ru*:
+
+:_rbrowse_minage
+en : Age rating
+ru*:
+
+:_rbrowse_ge
+en : Greater than or equal to
+ru*:
+
+:_rbrowse_le
+en : Less than or equal to
+ru*:
+
+:_rbrowse_resolution
+en : Screen resolution
+ru*:
+
+:_rbrowse_type
+en : Release type
+ru*:
+
+:_rbrowse_all
+en : All
+ru*:
+
+:_rbrowse_patch
+en : Patch status
+ru*:
+
+:_rbrowse_patchonly
+en : Only patches
+ru*:
+
+:_rbrowse_patchnone
+en : Only standalone releases
+ru*:
+
+:_rbrowse_freeware
+en : Freeware
+ru*:
+
+:_rbrowse_freewareonly
+en : Freeware only
+ru*:
+
+:_rbrowse_freewarenone
+en : Only non-free releases
+ru*:
+
+:_rbrowse_doujin
+en : Doujin
+ru*:
+
+:_rbrowse_doujinonly
+en : Only doujin releases
+ru*:
+
+:_rbrowse_doujinnone
+en : Only commercial releases
+ru*:
+
+:_rbrowse_dateafter
+en : Released after
+ru*:
+
+:_rbrowse_datebefore
+en : Released before
+ru*:
+
+:_rbrowse_languages
+en : Languages
+ru*:
+
+:_rbrowse_boolor
+en : boolean or, selecting more gives more results
+ru*:
+
+:_rbrowse_platforms
+en : Platforms
+ru*:
+
+:_rbrowse_media
+en : Media
+ru*:
+
+:_rbrowse_apply
+en : Apply
+ru*:
+
+:_rbrowse_clear
+en : Clear
+ru*:
+
+
#############################################################################
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 69fc9d36..d52aa096 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -521,7 +521,7 @@ sub browse {
$_&&($url .= ";re=$_") for @{$f->{re}};
$_&&($url .= ";me=$_") for @{$f->{me}};
- $self->htmlHeader(title => 'Browse releases');
+ $self->htmlHeader(title => mt('_rbrowse_title'));
_filters($self, $f, !@filters || !@$list);
$self->htmlBrowse(
class => 'relbrowse',
@@ -531,10 +531,10 @@ sub browse {
pageurl => "$url;s=$f->{s};o=$f->{o}",
sorturl => $url,
header => [
- [ 'Released', 'released' ],
- [ 'Rating', 'minage' ],
+ [ mt('_rbrowse_col_minage'), 'released' ],
+ [ mt('_rbrowse_col_rating'), 'minage' ],
[ '', '' ],
- [ 'Title', 'title' ],
+ [ mt('_rbrowse_col_title'), 'title' ],
],
row => sub {
my($s, $n, $l) = @_;
@@ -557,11 +557,9 @@ sub browse {
) if @$list;
if(@filters && !@$list) {
div class => 'mainbox';
- h1 'No results found';
+ h1 mt '_rbrowse_noresults_title';
div class => 'notice';
- p qq|Sorry, couldn't find anything that comes through your filters. You might want to disable a few filters to get more results.\n\n|
- .qq|Also, keep in mind that we don't have all information about all releases. So e.g. filtering on screen resolution will exclude |
- .qq|all releases of which we don't know it's resolution, even though it might in fact be in the resolution you're looking for.|;
+ p mt '_rbrowse_noresults_msg';
end;
end;
}
@@ -574,32 +572,31 @@ sub _filters {
form method => 'get', action => '/r', 'accept-charset' => 'UTF-8';
div class => 'mainbox';
- h1 'Browse releases';
+ h1 mt '_rbrowse_title';
$self->htmlSearchBox('r', $f->{q});
a id => 'advselect', href => '#';
- lit '<i>'.($shown?'&#9662;':'&#9656;').'</i> filters';
+ lit '<i>'.($shown?'&#9662;':'&#9656;').'</i> '.mt('_rbrowse_filters');
end;
div id => 'advoptions', !$shown ? (class => 'hidden') : ();
- h2 'Filters';
+ h2 mt '_rbrowse_filters';
table class => 'formtable', style => 'margin-left: 0';
Tr class => 'newfield';
- td class => 'label'; label for => 'ma_m', 'Age rating'; end;
+ td class => 'label'; label for => 'ma_m', mt '_rbrowse_minage'; end;
td class => 'field';
- Select id => 'ma_m', name => 'ma_m', style => 'width: 70px';
- option value => 0, $f->{ma_m} == 0 ? ('selected' => 'selected') : (), 'greater';
- option value => 1, $f->{ma_m} == 1 ? ('selected' => 'selected') : (), 'smaller';
+ Select id => 'ma_m', name => 'ma_m', style => 'width: 160px';
+ option value => 0, $f->{ma_m} == 0 ? ('selected' => 'selected') : (), mt '_rbrowse_ge';
+ option value => 1, $f->{ma_m} == 1 ? ('selected' => 'selected') : (), mt '_rbrowse_le';
end;
- txt ' than or equal to ';
Select id => 'ma_a', name => 'ma_a', style => 'width: 80px; text-align: center';
$_>=0 && option value => $_, $f->{ma_a} == $_ ? ('selected' => 'selected') : (), $self->{age_ratings}{$_}[0]
for (sort { $a <=> $b } keys %{$self->{age_ratings}});
end;
end;
td rowspan => 5, style => 'padding-left: 40px';
- label for => 're', 'Screen resolution'; br;
+ label for => 're', mt '_rbrowse_resolution'; br;
Select id => 're', name => 're', multiple => 'multiple', size => 8;
my $l='';
for my $i (1..$#{$self->{resolutions}}) {
@@ -614,20 +611,21 @@ sub _filters {
end;
end;
end;
- $self->htmlFormPart($f, [ select => short => 'tp', name => 'Release type',
- options => [ [-1, 'All'], map [ $_, mt "_rtype_$_" ], @{$self->{release_types}} ]]);
- $self->htmlFormPart($f, [ select => short => 'pa', name => 'Patch status',
- options => [ [0, 'All'], [1, 'Only patches'], [2, 'Only standalone releases']]]);
- $self->htmlFormPart($f, [ select => short => 'fw', name => 'Freeware',
- options => [ [0, 'All'], [1, 'Freeware only'], [2, 'Only non-free releases']]]);
- $self->htmlFormPart($f, [ select => short => 'do', name => 'Doujin',
- options => [ [0, 'All'], [1, 'Only doujin releases'], [2, 'Only commercial releases']]]);
- $self->htmlFormPart($f, [ date => short => 'mi', name => 'Released after' ]);
- $self->htmlFormPart($f, [ date => short => 'ma', name => 'Released before' ]);
+ $self->htmlFormPart($f, [ select => short => 'tp', name => mt('_rbrowse_type'),
+ options => [ [-1, mt '_rbrowse_all'], map [ $_, mt "_rtype_$_" ], @{$self->{release_types}} ]]);
+ $self->htmlFormPart($f, [ select => short => 'pa', name => mt('_rbrowse_patch'),
+ options => [ [0, mt '_rbrowse_all' ], [1, mt '_rbrowse_patchonly'], [2, mt '_rbrowse_patchnone']]]);
+ $self->htmlFormPart($f, [ select => short => 'fw', name => mt('_rbrowse_freeware'),
+ options => [ [0, mt '_rbrowse_all' ], [1, mt '_rbrowse_freewareonly'], [2, mt '_rbrowse_freewarenone']]]);
+ $self->htmlFormPart($f, [ select => short => 'do', name => mt('_rbrowse_doujin'),
+ options => [ [0, mt '_rbrowse_all' ], [1, mt '_rbrowse_doujinonly'], [2, mt '_rbrowse_doujinnone']]]);
+ $self->htmlFormPart($f, [ date => short => 'mi', name => mt '_rbrowse_dateafter' ]);
+ $self->htmlFormPart($f, [ date => short => 'ma', name => mt '_rbrowse_datebefore' ]);
end;
h2;
- lit 'Languages <b>(boolean or, selecting more gives more results)</b>';
+ txt mt '_rbrowse_languages';
+ b ' ('.mt('_rbrowse_boolor').')';
end;
for my $i (sort @{$self->dbLanguages}) {
span;
@@ -640,7 +638,8 @@ sub _filters {
}
h2;
- lit 'Platforms <b>(boolean or, selecting more gives more results)</b>';
+ txt mt '_rbrowse_platforms';
+ b ' ('.mt('_rbrowse_boolor').')';
end;
for my $i (sort @{$self->{platforms}}) {
next if $i eq 'oth';
@@ -654,7 +653,8 @@ sub _filters {
}
h2;
- lit 'Media <b>(boolean or, selecting more gives more results)</b>';
+ txt mt '_rbrowse_media';
+ b ' ('.mt('_rbrowse_boolor').')';
end;
for my $i (sort keys %{$self->{media}}) {
next if $i eq 'otc';
@@ -665,8 +665,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="/r"';
+ input type => 'submit', value => mt('_rbrowse_apply'), class => 'submit';
+ input type => 'reset', value => mt('_rbrowse_clear'), class => 'submit', onclick => 'location.href="/r"';
end;
end;
end;