diff options
author | Yorhel <git@yorhel.nl> | 2010-12-14 12:45:23 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-14 12:45:23 +0100 |
commit | 51b956d259eb228e4a1b8eed2bff334840dc3101 (patch) | |
tree | db7672db83122b3a0adcf7aa3b234d29e4fb4230 /lib/VNDB/Handler/Releases.pm | |
parent | 442779dcbba94090616c8291c307626a4bd56448 (diff) |
L10N: Extracted screen resolution strings from the code
A somewhat ugly approach, but couldn't think of something better.
Diffstat (limited to 'lib/VNDB/Handler/Releases.pm')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index bf4d5133..ce5c62c2 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -160,9 +160,10 @@ sub _infotable { } if($r->{resolution}) { + my $res = $self->{resolutions}[$r->{resolution}][0]; Tr ++$i % 2 ? (class => 'odd') : (); td mt '_relinfo_resolution'; - td $self->{resolutions}[$r->{resolution}][0]; + td $res =~ /^_/ ? mt $res : $res; end; } @@ -412,7 +413,7 @@ sub _form { rel_format => [ mt('_redit_form_format'), [ select => short => 'resolution', name => mt('_redit_form_resolution'), options => [ - map [ $_, @{$self->{resolutions}[$_]} ], 0..$#{$self->{resolutions}} ] ], + map [ $_, map /^_/?mt($_):$_, @{$self->{resolutions}[$_]} ], 0..$#{$self->{resolutions}} ] ], [ select => short => 'voiced', name => mt('_redit_form_voiced'), options => [ map [ $_, mt '_voiced_'.$_ ], @{$self->{voiced}} ] ], [ select => short => 'ani_story', name => mt('_redit_form_ani_story'), options => [ |