diff options
author | Yorhel <git@yorhel.nl> | 2016-01-17 13:23:42 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2016-01-17 14:51:44 +0100 |
commit | 8e876179272ce79b0023f771be5f3842bf5ef679 (patch) | |
tree | 568bf5c3eb859d20bc6fc81c435326d21d444d51 /data/global.pl | |
parent | 110db705ecdfb5c89500ff8f24652bcd1e25fc45 (diff) |
L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boards
I definitely needed the Tie::IxHash thing for these.
Diffstat (limited to 'data/global.pl')
-rw-r--r-- | data/global.pl | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/data/global.pl b/data/global.pl index b03d0dfb..7362ddea 100644 --- a/data/global.pl +++ b/data/global.pl @@ -81,7 +81,18 @@ our %S; in => 'Individual', ng => 'Amateur group', ), - discussion_boards => [qw|an db ge v p u|], # <- note that some properties of these boards are hard-coded + # Some discussion board properties are hardcoded, e.g.: + # - number of rows to show on /t + # - whether it needs mod access + # - whether it needs to be linked to a DB item. + discussion_boards => ordhash( + an => 'Announcements', + db => 'VNDB discussions', + ge => 'General discussions', + v => 'Visual novels', + p => 'Producers', + u => 'Users', + ), vn_lengths => [ # name time examples [ 'Unknown', '', '' ], @@ -200,21 +211,33 @@ our %S; ero => 'Sexual content', tech => 'Technical', ), - # The voiced, animated, and *_status fields are stored in the database by their (numeric) index. voiced => [ 'Unknown', 'Not voiced', 'Only ero scenes voiced', 'Partially voiced', 'Fully voiced' ], animated => [ 'Unknown', 'No animations', 'Simple animations', 'Some fully animated scenes', 'All scenes fully animated' ], wishlist_status => [ 'high', 'medium', 'low', 'blacklist' ], rlist_status => [ 'Unknown', 'Pending', 'Obtained', 'On loan', 'Deleted' ], # 0 = hardcoded "unknown", 2 = hardcoded 'OK' vnlist_status => [ 'Unknown', 'Playing', 'Finished', 'Stalled', 'Dropped' ], - blood_types => [qw| unknown o a b ab |], - genders => [qw| unknown m f b |], - char_roles => [qw| main primary side appears |], + blood_types => ordhash(qw{unknown Unknown o O a A b B ab AB}), + genders => ordhash(unknown => 'Unknown or N/A', qw{m Male f Female b Both}), + char_roles => ordhash( + main => 'Protagonist', + primary => 'Main character', + side => 'Side character', + appears => 'Makes an appearance' + ), atom_feeds => { # num_entries, title, id announcements => [ 10, 'VNDB Site Announcements', '/t/an' ], changes => [ 25, 'VNDB Recent Changes', '/hist' ], posts => [ 25, 'VNDB Recent Posts', '/t' ], }, - staff_roles => [qw|scenario chardesign art music songs director staff|], + staff_roles => ordhash( + scenario => 'Scenario', + chardesign => 'Character design', + art => 'Artist', + music => 'Composer', + songs => 'Vocals', + director => 'Director', + staff => 'Staff', + ), poll_options => 20, # max number of options in discussion board polls ); |