diff options
author | Yorhel <git@yorhel.nl> | 2015-07-20 01:41:27 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-07-20 01:41:27 +0200 |
commit | c1bc3e9da4a48d3354c46cc39e833b185a69377e (patch) | |
tree | 1269dbab1dafbcd4b2e9514407f873f4d7972ee4 /lib/VNDB/Handler/Chars.pm | |
parent | 8b8cf479c0e1f9fe87133fa0680fc013dc858553 (diff) |
L10N: Support plural forms for charroles
Used /v+/chars, other occurrences just use singular.
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r-- | lib/VNDB/Handler/Chars.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm index 9909f671..4baa1620 100644 --- a/lib/VNDB/Handler/Chars.pm +++ b/lib/VNDB/Handler/Chars.pm @@ -59,7 +59,7 @@ sub page { [ vns => join => '<br />', split => sub { map sprintf('<a href="/v%d">v%d</a> %s %s (%s)', $_->{vid}, $_->{vid}, $_->{rid}?sprintf('[<a href="/r%d">r%d</a>]', $_->{rid}, $_->{rid}):'', - mt("_charrole_$_->{role}"), mt("_spoil_$_->{spoil}")), @{$_[0]}; + mt("_charrole_$_->{role}", 1), mt("_spoil_$_->{spoil}")), @{$_[0]}; }], ); } @@ -197,7 +197,7 @@ sub charTable { # special case: all releases, no exceptions if(!$vn && @r == 1 && !$r[0]{rid}) { span class => charspoil $r[0]{spoil}; - txt mt("_charrole_$r[0]{role}").' - '; + txt mt("_charrole_$r[0]{role}", 1).' - '; a href => "/v$r[0]{vid}/chars", $r[0]{vntitle}; end; next; @@ -211,7 +211,7 @@ sub charTable { span class => charspoil $_->{spoil}; br if !$vn || $_ != $r[0]; b class => 'grayedout', '> '; - txt mt("_charrole_$_->{role}").' - '; + txt mt("_charrole_$_->{role}", 1).' - '; if($_->{rid}) { b class => 'grayedout', "r$_->{rid}:"; a href => "/r$_->{rid}", $_->{rtitle}; |