summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VNDB/Handler/Producers.pm2
-rw-r--r--lib/VNDB/Handler/Releases.pm4
-rw-r--r--lib/VNDB/Handler/Staff.pm2
-rwxr-xr-xutil/jsgen.pl2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 72da356f..ddc992f2 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -341,7 +341,7 @@ sub edit {
[ textarea => short => 'alias', name => 'Aliases', rows => 4 ],
[ static => content => '(Un)official aliases, separated by a newline.' ],
[ select => name => 'Primary language', short => 'lang',
- options => [ map [ $_, "$_ ($LANGUAGE{$_})" ], keys %LANGUAGE ] ],
+ options => [ map [ $_, "$LANGUAGE{$_} ($_)" ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ] ],
[ input => name => 'Website', short => 'website' ],
[ input => short => 'l_wikidata',name => 'Wikidata ID',
value => $frm->{l_wikidata} ? "Q$frm->{l_wikidata}" : '',
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 027bab78..4abfb036 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -486,8 +486,8 @@ sub _form {
[ input => short => 'title', name => 'Title (romaji)', width => 450 ],
[ input => short => 'original', name => 'Original title', width => 450 ],
[ static => content => 'The original title of this release, leave blank if it already is in the Latin alphabet.' ],
- [ select => short => 'languages', name => 'Language(s)', multi => 1,
- options => [ map [ $_, "$_ ($LANGUAGE{$_})" ], keys %LANGUAGE ] ],
+ [ select => short => 'languages', name => 'Language(s)', multi => 1, size => 10,
+ options => [ map [ $_, "$LANGUAGE{$_} ($_)" ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ] ],
[ input => short => 'gtin', name => 'JAN/UPC/EAN' ],
[ input => short => 'catalog', name => 'Catalog number' ],
[ input => short => 'website', name => 'Official website' ],
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm
index fc62843a..5bf9d29f 100644
--- a/lib/VNDB/Handler/Staff.pm
+++ b/lib/VNDB/Handler/Staff.pm
@@ -280,7 +280,7 @@ sub edit {
[ select => name => 'Gender',short => 'gender', options => [
map [ $_, $GENDER{$_} ], qw(unknown m f) ] ],
[ select => name => 'Primary language', short => 'lang',
- options => [ map [ $_, "$_ ($LANGUAGE{$_})" ], keys %LANGUAGE ] ],
+ options => [ map [ $_, "$LANGUAGE{$_} ($_)" ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ] ],
[ input => name => 'Official page', short => 'l_site' ],
[ input => short => 'l_wikidata',name => 'Wikidata ID',
value => $frm->{l_wikidata} ? "Q$frm->{l_wikidata}" : '',
diff --git a/util/jsgen.pl b/util/jsgen.pl
index f5178d78..bc9e75b9 100755
--- a/util/jsgen.pl
+++ b/util/jsgen.pl
@@ -37,7 +37,7 @@ sub vars {
rlist_status => [ map [ $_, $RLIST_STATUS{$_} ], keys %RLIST_STATUS ],
cookie_prefix => config->{tuwf}{cookie_prefix},
age_ratings => [ map [ $_, $AGE_RATING{$_}{txt}], keys %AGE_RATING ],
- languages => [ map [ $_, $LANGUAGE{$_} ], keys %LANGUAGE ],
+ languages => [ map [ $_, $LANGUAGE{$_} ], sort { $LANGUAGE{$a} cmp $LANGUAGE{$b} } keys %LANGUAGE ],
platforms => [ map [ $_, $PLATFORM{$_} ], keys %PLATFORM ],
char_roles => [ map [ $_, $CHAR_ROLE{$_}{txt} ], keys %CHAR_ROLE ],
media => [ map [ $_, $MEDIUM{$_}{txt}, $MEDIUM{$_}{qty} ], keys %MEDIUM ],