From 8e876179272ce79b0023f771be5f3842bf5ef679 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 17 Jan 2016 13:23:42 +0100 Subject: L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boards I definitely needed the Tie::IxHash thing for these. --- util/jsgen.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util') diff --git a/util/jsgen.pl b/util/jsgen.pl index 412cec0e..aad133a1 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -125,15 +125,15 @@ sub vars { age_ratings => [ map [ $_, l10nstr($lang, $_ == -1 ? ('_unknown') : $_ == 0 ? ('_minage_all') : ('_minage_age', $_)) ], @{$S{age_ratings}} ], languages => [ map [ $_, $S{languages}{$_} ], keys %{$S{languages}} ], platforms => [ map [ $_, $S{platforms}{$_} ], keys %{$S{platforms}} ], - char_roles => [ map [ $_, l10nstr($lang, "_charrole_$_") ], @{$S{char_roles}} ], + char_roles => [ map [ $_, $S{char_roles}{$_} ], keys %{$S{char_roles}} ], media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], keys %{$S{media}} ], release_types => [ map [ $_, ucfirst $_ ], @{$S{release_types}} ], animated => [ map [ $_, $S{animated}[$_] ], 0..$#{$S{animated}} ], voiced => [ map [ $_, $S{voiced}[$_] ], 0..$#{$S{voiced}} ], vn_lengths => [ map [ $_, $S{vn_lengths}[$_][0] ], 0..$#{$S{vn_lengths}} ], - blood_types => [ map [ $_, l10nstr($lang, $_ eq 'unknown' ? '_unknown' : "_bloodt_$_") ], @{$S{blood_types}} ], - genders => [ map [ $_, l10nstr($lang, "_gender_$_") ], @{$S{genders}} ], - staff_roles => [ map [ $_, l10nstr($lang, "_credit_$_") ], @{$S{staff_roles}} ], + blood_types => [ map [ $_, $S{blood_types}{$_} ], keys %{$S{blood_types}} ], + genders => [ map [ $_, $S{genders}{$_} ], keys %{$S{genders}} ], + staff_roles => [ map [ $_, $S{staff_roles}{$_} ], keys %{$S{staff_roles}} ], resolutions => scalar resolutions(), l10n_str => $l10n, ); -- cgit v1.2.3