summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-09-06 15:15:51 +0200
committerYorhel <git@yorhel.nl>2009-09-06 15:15:51 +0200
commit74bc0733e290d1f4b9726f7fbb46865789bcc7cb (patch)
treec8123ccfbc3858ae071a431309b80aea67f39e5d
parent144100fb5239f187fb1f5fee85433aeed668dc2d (diff)
L10N: Converted 'voiced', 'animated' and 'votes' in global.pl
-rw-r--r--data/global.pl28
-rw-r--r--data/lang.txt91
-rw-r--r--lib/VNDB/Handler/Releases.pm24
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
5 files changed, 106 insertions, 41 deletions
diff --git a/data/global.pl b/data/global.pl
index ba95638b..79978c5e 100644
--- a/data/global.pl
+++ b/data/global.pl
@@ -112,32 +112,8 @@ our %S = (%S,
[ '1280x720 (720p)', 'widescreen' ],
[ '1920x1080 (1080p)', 'widescreen' ],
],
- voiced => [
- 'Unknown',
- 'Not voiced',
- 'Only ero scenes voiced',
- 'Partially voiced',
- 'Fully voiced',
- ],
- animated => [
- 'Unknown',
- 'No animations',
- 'Simple animations',
- 'Some fully animated scenes',
- 'All scenes fully animated',
- ],
- votes => [
- 'worst ever',
- 'awful',
- 'bad',
- 'weak',
- 'so-so',
- 'decent',
- 'good',
- 'very good',
- 'excellent',
- 'masterpiece',
- ],
+ voiced => [ 0..4 ],
+ animated => [ 0..4 ],
wishlist_status => [
'high',
'medium',
diff --git a/data/lang.txt b/data/lang.txt
index 77387291..7c700aa7 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -338,6 +338,95 @@ en : Users
ru : Пользователи
+# 'Voiced' information for releases
+
+:_voiced_0
+en : Unknown
+ru*:
+
+:_voiced_1
+en : Not voiced
+ru*:
+
+:_voiced_2
+en : Only ero scenes voiced
+ru*:
+
+:_voiced_3
+en : Partially voiced
+ru*:
+
+:_voiced_4
+en : Fully voiced
+ru*:
+
+
+# 'Animated' information for releases
+
+:_animated_0
+en : Unknown
+ru*:
+
+:_animated_1
+en : No animations
+ru*:
+
+:_animated_2
+en : Simple animations
+ru*:
+
+:_animated_3
+en : Some fully animated scenes
+ru*:
+
+:_animated_4
+en : All scenes fully animated
+ru*:
+
+
+# Rating indications
+
+:_vote_1
+en : worst ever
+ru*:
+
+:_vote_2
+en : awful
+ru*:
+
+:_vote_3
+en : bad
+ru*:
+
+:_vote_4
+en : weak
+ru*:
+
+:_vote_5
+en : so-so
+ru*:
+
+:_vote_6
+en : decent
+ru*:
+
+:_vote_7
+en : good
+ru*:
+
+:_vote_8
+en : very good
+ru*:
+
+:_vote_9
+en : excellent
+ru*:
+
+:_vote_10
+en : masterpiece
+ru*:
+
+
#############################################################################
@@ -1107,7 +1196,7 @@ ru : Патч
en : Freeware
ru : Freeware
-:_revfield_r_doujijn
+:_revfield_r_doujin
en : Doujin
ru : Додзинси
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index d28436cf..b60d9f8a 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -60,9 +60,9 @@ sub page {
} @{$_[0]};
} ],
[ resolution => serialize => sub { $self->{resolutions}[$_[0]][0] } ],
- [ voiced => serialize => sub { $self->{voiced}[$_[0]] } ],
- [ ani_story => serialize => sub { $self->{animated}[$_[0]] } ],
- [ ani_ero => serialize => sub { $self->{animated}[$_[0]] } ],
+ [ voiced => serialize => sub { mt '_voiced_'.$_[0] } ],
+ [ ani_story => serialize => sub { mt '_animated_'.$_[0] } ],
+ [ ani_ero => serialize => sub { mt '_animated_'.$_[0] } ],
[ producers => join => '<br />', split => sub {
map sprintf('<a href="/p%d" title="%s">%s</a>', $_->{id}, $_->{original}||$_->{name}, shorten $_->{name}, 50), @{$_[0]};
} ],
@@ -172,7 +172,7 @@ sub _infotable {
if($r->{voiced}) {
Tr ++$i % 2 ? (class => 'odd') : ();
td mt '_relinfo_voiced';
- td $self->{voiced}[$r->{voiced}];
+ td mt '_voiced_'.$r->{voiced};
end;
}
@@ -180,8 +180,8 @@ sub _infotable {
Tr ++$i % 2 ? (class => 'odd') : ();
td mt '_relinfo_ani';
td join ', ',
- $r->{ani_story} ? mt('_relinfo_ani_story', $self->{animated}[$r->{ani_story}]):(),
- $r->{ani_ero} ? mt('_relinfo_ani_ero', $self->{animated}[$r->{ani_ero} ]):();
+ $r->{ani_story} ? mt('_relinfo_ani_story', mt '_animated_'.$r->{ani_story}):(),
+ $r->{ani_ero} ? mt('_relinfo_ani_ero', mt '_animated_'.$r->{ani_ero} ):();
end;
}
@@ -313,9 +313,9 @@ sub edit {
{ name => 'platforms', required => 0, default => '', multi => 1, enum => $self->{platforms} },
{ name => 'media', required => 0, default => '' },
{ name => 'resolution',required => 0, default => 0, enum => [ 0..$#{$self->{resolutions}} ] },
- { name => 'voiced', required => 0, default => 0, enum => [ 0..$#{$self->{voiced}} ] },
- { name => 'ani_story', required => 0, default => 0, enum => [ 0..$#{$self->{animated}} ] },
- { name => 'ani_ero', required => 0, default => 0, enum => [ 0..$#{$self->{animated}} ] },
+ { name => 'voiced', required => 0, default => 0, enum => $self->{voiced} },
+ { name => 'ani_story', required => 0, default => 0, enum => $self->{animated} },
+ { name => 'ani_ero', required => 0, default => 0, enum => $self->{animated} },
{ name => 'producers', required => 0, default => '' },
{ name => 'vn', maxlength => 5000 },
{ name => 'editsum', maxlength => 5000 },
@@ -408,11 +408,11 @@ sub _form {
[ select => short => 'resolution', name => mt('_redit_form_resolution'), options => [
map [ $_, @{$self->{resolutions}[$_]} ], 0..$#{$self->{resolutions}} ] ],
[ select => short => 'voiced', name => mt('_redit_form_voiced'), options => [
- map [ $_, $self->{voiced}[$_] ], 0..$#{$self->{voiced}} ] ],
+ map [ $_, mt '_voiced_'.$_ ], @{$self->{voiced}} ] ],
[ select => short => 'ani_story', name => mt('_redit_form_ani_story'), options => [
- map [ $_, $self->{animated}[$_] ], 0..$#{$self->{animated}} ] ],
+ map [ $_, mt '_animated_'.$_ ], @{$self->{animated}} ] ],
[ select => short => 'ani_ero', name => mt('_redit_form_ani_ero'), options => [
- map [ $_, $_ ? $self->{animated}[$_] : mt('_redit_form_ani_ero_none') ], 0..$#{$self->{animated}} ] ],
+ map [ $_, $_ ? mt '_animated_'.$_ : mt('_redit_form_ani_ero_none') ], @{$self->{animated}} ] ],
[ static => content => mt('_redit_form_ani_ero_note') ],
[ hidden => short => 'media' ],
[ static => nolabel => 1, content => sub {
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 51287072..b6633247 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -325,7 +325,7 @@ sub _useroptions {
Select id => 'votesel';
option $vote ? mt '_vnpage_uopt_voted', $vote->{vote} : mt '_vnpage_uopt_novote';
optgroup label => $vote ? mt '_vnpage_uopt_changevote' : mt '_vnpage_uopt_dovote';
- option value => $_, "$_ ($self->{votes}[$_-1])" for (reverse 1..10);
+ option value => $_, "$_ (".mt("_vote_$_").')' for (reverse 1..10);
end;
option value => -1, mt '_vnpage_uopt_delvote' if $vote;
end;
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index b44d4166..6a1f86e6 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -436,7 +436,7 @@ sub htmlVoteStats {
end; end;
tfoot; Tr;
td colspan => 2, sprintf '%d vote%s total, average %.2f%s', $count, $count != 1 ? 's' : '', $total/$count,
- $type eq 'v' ? ' ('.$self->{votes}[ceil($total/$count-1)].')' : '';
+ $type eq 'v' ? ' ('.mt('_vote_'.ceil($total/$count-1)).')' : '';
end; end;
for (reverse 0..$#$stats) {
Tr;