summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-28 09:57:05 +0100
committerYorhel <git@yorhel.nl>2010-12-28 09:57:05 +0100
commita919a25370b31a4b969bcb663de6acce26bf235d (patch)
tree5410414e9a3d17262f6b26b00c1d35e31f8117a9
parentccca3774059b8befd99032cac37b102151ebd6d0 (diff)
Bugfix: translate screen resolutions on release revision pages
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/Releases.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fee3638e..015b03c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
skin, customcss, show_nsfw, show_list, notify_announce, notify_dbedit
- Store l10n preference in the database for logged-in users
- Bugfix: check for validness of form arguments on /[uv]+/votes
+ - Bugfix: translate screen resolutions on release revision pages
2.15 - 2010-12-15
- Removed expand/collapse from history browser and /u+/posts and switched to
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 5a040b22..6163e1f2 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -56,7 +56,7 @@ sub page {
[ media => join => ', ', split => sub {
map $self->{media}{$_->{medium}} ? $_->{qty}.' '.mt("_med_$_->{medium}", $_->{qty}) : mt("_med_$_->{medium}",1), @{$_[0]}
} ],
- [ resolution => serialize => sub { $self->{resolutions}[$_[0]][0] } ],
+ [ resolution => serialize => sub { my $r = $self->{resolutions}[$_[0]][0]; $r =~ /^_/ ? mt($r) : $r } ],
[ voiced => serialize => sub { mt '_voiced_'.$_[0] } ],
[ ani_story => serialize => sub { mt '_animated_'.$_[0] } ],
[ ani_ero => serialize => sub { mt '_animated_'.$_[0] } ],