From 295ccf2ef58898b1cbee32a137ae859d67237a3a Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 15 Aug 2015 13:46:15 +0200 Subject: js: Let jsgen.pl preprocess L10N strings + add L10N strings to some vars This simplifies the JS version of mt() a bit and makes the whole internationalization framework a bit more robust. I also changed the VARS.{rlist_status,age_ratings,languages,platforms,char_roles} arrays to include the L10N string. This simplifies the JS code and reduces the JS size. There's a few more of such lists that can be transformed in the same way, I'll get to that later. --- data/global.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/global.pl') diff --git a/data/global.pl b/data/global.pl index ef368d61..c8f2537b 100644 --- a/data/global.pl +++ b/data/global.pl @@ -106,7 +106,7 @@ our %S = (%S, voiced => [ 0..4 ], animated => [ 0..4 ], wishlist_status => [ 0..3 ], - rlist_status => [ 0..4 ], # 2 = hardcoded 'OK' + rlist_status => [ 0..4 ], # 0 = hardcoded "unknown", 2 = hardcoded 'OK'. List must not have gaps vnlist_status => [ 0..4 ], blood_types => [qw| unknown o a b ab |], genders => [qw| unknown m f b |], -- cgit v1.2.3