summaryrefslogtreecommitdiff
path: root/util/jsgen.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/jsgen.pl')
-rwxr-xr-xutil/jsgen.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl
index 5cf946fa..09be62e0 100755
--- a/util/jsgen.pl
+++ b/util/jsgen.pl
@@ -38,12 +38,12 @@ sub vars {
my %vars = (
rlist_status => [ map [ $_, $RLIST_STATUS{$_} ], keys %RLIST_STATUS ],
cookie_prefix => $O{cookie_prefix},
- age_ratings => [ map [ $_, $_ == -1 ? 'Unknown' : $_ == 0 ? 'All ages' : "$_+" ], @{$S{age_ratings}} ],
+ age_ratings => [ map [ $_, $AGE_RATING{$_}{txt}], keys %AGE_RATING ],
languages => [ map [ $_, $LANGUAGE{$_} ], keys %LANGUAGE ],
platforms => [ map [ $_, $PLATFORM{$_} ], keys %PLATFORM ],
char_roles => [ map [ $_, $CHAR_ROLE{$_}{txt} ], keys %CHAR_ROLE ],
media => [ map [ $_, $S{media}{$_}[1], $S{media}{$_}[0] ], keys %{$S{media}} ],
- release_types => [ map [ $_, ucfirst $_ ], @{$S{release_types}} ],
+ release_types => [ map [ $_, $RELEASE_TYPE{$_} ], keys %RELEASE_TYPE ],
animated => [ map [ $_, $ANIMATED{$_}{txt} ], keys %ANIMATED ],
voiced => [ map [ $_, $VOICED{$_}{txt} ], keys %VOICED ],
vn_lengths => [ map [ $_, $VN_LENGTH{$_}{txt} ], keys %VN_LENGTH ],