summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-16 11:52:22 +0100
committerYorhel <git@yorhel.nl>2016-01-16 15:11:36 +0100
commit6313653b01652affded23d682d136e5e6ee42799 (patch)
tree528263a90a2c336c3ab6226c211a1abeccffacb3 /data
parentca1a9c48c24a436babd30ad9e315db2781364879 (diff)
L10N: Intern languages/platforms/resolutions/media/ptype/rtype/vnlength
Diffstat (limited to 'data')
-rw-r--r--data/global.pl143
-rw-r--r--data/lang.txt311
2 files changed, 115 insertions, 339 deletions
diff --git a/data/global.pl b/data/global.pl
index ca1df4d3..67254c0b 100644
--- a/data/global.pl
+++ b/data/global.pl
@@ -1,6 +1,8 @@
package VNDB;
+use utf8;
+
# options for TUWF
our %O = (
db_login => [ 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' ],
@@ -35,13 +37,62 @@ our %S;
permissions => {qw| board 1 boardmod 2 edit 4 tag 16 dbmod 32 tagmod 64 usermod 128 affiliate 256 |},
default_perm => 1+4+16, # Keep synchronised with the default value of users.perm
default_tags_cat=> 'cont,tech',
- languages => [qw|ar ca cs da de en es fi fr he hu id it ja ko nl no pl pt-br pt-pt ro ru sk sv tr uk vi zh|],
- producer_types => [qw|co in ng|],
+ languages => {grep !/^ *$/, split /[\s\r\n]*([^ ]+) +(.+)/, q{
+ ar Arabic
+ ca Catalan
+ cs Czech
+ da Danish
+ de German
+ en English
+ es Spanish
+ fi Finnish
+ fr French
+ he Hebrew
+ hu Hungarian
+ id Indonesian
+ it Italian
+ ja Japanese
+ ko Korean
+ nl Dutch
+ no Norwegian
+ pl Polish
+ pt-br Portuguese (Brazil)
+ pt-pt Portuguese (Portugal)
+ ro Romanian
+ ru Russian
+ sk Slovak
+ sv Swedish
+ tr Turkish
+ uk Ukrainian
+ vi Vietnamese
+ zh Chinese
+ }},
+ producer_types => {
+ co => 'Company',
+ in => 'Individual',
+ ng => 'Amateur group',
+ },
discussion_boards => [qw|an db ge v p u|], # <- note that some properties of these boards are hard-coded
- vn_lengths => [ 0..5 ],
- anime_types => [qw|tv ova mov oth web spe mv|],
+ vn_lengths => [
+ # name time examples
+ [ 'Unknown', '', '' ],
+ [ 'Very short', '< 2 hours', 'OMGWTFOTL, Jouka no Monshou, The world to reverse' ],
+ [ 'Short', '2 - 10 hours', 'Narcissu, Saya no Uta, Planetarian' ],
+ [ 'Medium', '10 - 30 hours', 'Yume Miru Kusuri, Cross†Channel, Crescendo' ],
+ [ 'Long', '30 - 50 hours', 'Tsukihime, Ever17, Demonbane' ],
+ [ 'Very long', '> 50 hours', 'Clannad, Umineko, Fate/Stay Night' ],
+ ],
+ anime_types => {
+ tv => 'TV Series',
+ ova => 'OVA',
+ mov => 'Movie',
+ oth => 'Other',
+ web => 'Web',
+ spe => 'TV Special',
+ mv => 'Music Video',
+ },
board_edit_time => 7*24*3600,
- vn_relations => {
+ vn_relations => {
# id => [ order, reverse ]
seq => [ 0, 'preq' ],
preq => [ 1, 'seq' ],
@@ -67,37 +118,73 @@ our %S;
age_ratings => [-1, 0, 6..18],
release_types => [qw|complete partial trial|],
# The 'unk' platform and medium are reserved for "unknown".
- platforms => [qw|win dos lin mac ios and dvd bdp fmt gba gbc msx nds nes p88 p98 pce pcf psp ps1 ps2 ps3 ps4 psv drc sat sfc wii n3d x68 xb1 xb3 xbo web oth|],
+ platforms => {grep !/^ *$/, split /[\s\r\n]*([^ ]+) +(.+)/, q{
+ win Windows
+ dos DOS
+ lin Linux
+ mac Mac OS
+ ios Apple iProduct
+ and Android
+ dvd DVD Player
+ bdp Blu-ray Player
+ fmt FM Towns
+ gba Game Boy Advance
+ gbc Game Boy Color
+ msx MSX
+ nds Nintendo DS
+ nes Famicom
+ p88 PC-88
+ p98 PC-98
+ pce PC Engine
+ pcf PC-FX
+ psp PlayStation Portable
+ ps1 PlayStation 1
+ ps2 PlayStation 2
+ ps3 PlayStation 3
+ ps4 PlayStation 4
+ psv PlayStation Vita
+ drc Dreamcast
+ sat Sega Saturn
+ sfc Super Nintendo
+ wii Nintendo Wii
+ n3d Nintendo 3DS
+ x68 X68000
+ xb1 Xbox
+ xb3 Xbox 360
+ xbo Xbox One
+ web Website
+ oth Other
+ }},
media => {
- #DB qty?
- cd => 1,
- dvd => 1,
- gdr => 1,
- blr => 1,
- flp => 1,
- mrt => 1,
- mem => 1,
- umd => 1,
- nod => 1,
- in => 0,
- otc => 0
+ #DB qty txt plural (if qty)
+ cd => [ 1, 'CD', 'CDs' ],
+ dvd => [ 1, 'DVD', 'DVDs' ],
+ gdr => [ 1, 'GD-ROM', 'GD-ROMs' ],
+ blr => [ 1, 'Blu-ray disc', 'Blu-ray discs' ],
+ flp => [ 1, 'Floppy', 'Floppies' ],
+ mrt => [ 1, 'Cartridge', 'Cartridges' ],
+ mem => [ 1, 'Memory card', 'Memory cards' ],
+ umd => [ 1, 'UMD', 'UMDs' ],
+ nod => [ 1, 'Nintendo Optical Disc', 'Nintendo Optical Discs' ],
+ in => [ 0, 'Internet download', '' ],
+ otc => [ 0, 'Other', '' ],
},
resolutions => [
- [ '_scrres_unknown', '' ],
- [ '_scrres_nonstandard', '' ],
+ [ 'Unknown / console / handheld', '' ],
+ [ 'Non-standard', '' ],
[ '640x480', '4:3' ],
[ '800x600', '4:3' ],
[ '1024x768', '4:3' ],
[ '1280x960', '4:3' ],
[ '1600x1200', '4:3' ],
- [ '640x400', '_scrres_ws' ],
- [ '960x600', '_scrres_ws' ],
- [ '1024x576', '_scrres_ws' ],
- [ '1024x600', '_scrres_ws' ],
- [ '1024x640', '_scrres_ws' ],
- [ '1280x720', '_scrres_ws' ],
- [ '1280x800', '_scrres_ws' ],
- [ '1920x1080', '_scrres_ws' ],
+ [ '640x400', 'widescreen' ],
+ [ '960x600', 'widescreen' ],
+ [ '1024x576', 'widescreen' ],
+ [ '1024x600', 'widescreen' ],
+ [ '1024x640', 'widescreen' ],
+ [ '1280x720', 'widescreen' ],
+ [ '1280x800', 'widescreen' ],
+ [ '1920x1080', 'widescreen' ],
],
tag_categories => [ qw|cont ero tech| ],
voiced => [ 0..4 ],
diff --git a/data/lang.txt b/data/lang.txt
index 8ad53799..bd056f7e 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -38,239 +38,6 @@ information.
en : Unknown
-# languages
-
-:_lang_ar
-en : Arabic
-
-:_lang_ca
-en : Catalan
-
-:_lang_cs
-en : Czech
-
-:_lang_da
-en : Danish
-
-:_lang_de
-en : German
-
-:_lang_en
-en : English
-
-:_lang_es
-en : Spanish
-
-:_lang_fi
-en : Finnish
-
-:_lang_fr
-en : French
-
-:_lang_he
-en : Hebrew
-
-:_lang_hu
-en : Hungarian
-
-:_lang_id
-en : Indonesian
-
-:_lang_it
-en : Italian
-
-:_lang_ja
-en : Japanese
-
-:_lang_ko
-en : Korean
-
-:_lang_nl
-en : Dutch
-
-:_lang_no
-en : Norwegian
-
-:_lang_pl
-en : Polish
-
-:_lang_pt-br
-en : Portuguese (Brazil)
-
-:_lang_pt-pt
-en : Portuguese (Portugal)
-
-:_lang_ro
-en : Romanian
-
-:_lang_ru
-en : Russian
-
-:_lang_sk
-en : Slovak
-
-:_lang_sv
-en : Swedish
-
-:_lang_tr
-en : Turkish
-
-:_lang_uk
-en : Ukrainian
-
-:_lang_vi
-en : Vietnamese
-
-:_lang_zh
-en : Chinese
-
-
-# platforms
-# most of these probably don't need TL in most languages, but some
-# languages (i.e. Japanese) do use different names for products
-
-:_plat_win
-en : Windows
-
-:_plat_dos
-en : DOS
-
-:_plat_lin
-en : Linux
-
-:_plat_mac
-en : Mac OS
-
-:_plat_ios
-en : Apple iProduct
-
-:_plat_and
-en : Android
-
-:_plat_dvd
-en : DVD Player
-
-:_plat_bdp
-en : Blu-ray Player
-
-:_plat_fmt
-en : FM Towns
-
-:_plat_gba
-en : Game Boy Advance
-
-:_plat_gbc
-en : Game Boy Color
-
-:_plat_msx
-en : MSX
-
-:_plat_nds
-en : Nintendo DS
-
-:_plat_nes
-en : Famicom
-
-:_plat_p88
-en : PC-88
-
-:_plat_p98
-en : PC-98
-
-:_plat_pce
-en : PC Engine
-
-:_plat_pcf
-en : PC-FX
-
-:_plat_psp
-en : PlayStation Portable
-
-:_plat_ps1
-en : PlayStation 1
-
-:_plat_ps2
-en : PlayStation 2
-
-:_plat_ps3
-en : PlayStation 3
-
-:_plat_ps4
-en : PlayStation 4
-
-:_plat_psv
-en : PlayStation Vita
-
-:_plat_drc
-en : Dreamcast
-
-:_plat_sat
-en : Sega Saturn
-
-:_plat_sfc
-en : Super Nintendo
-
-:_plat_wii
-en : Nintendo Wii
-
-:_plat_n3d
-en : Nintendo 3DS
-
-:_plat_x68
-en : X68000
-
-:_plat_xb1
-en : Xbox
-
-:_plat_xb3
-en : Xbox 360
-
-:_plat_xbo
-en : Xbox One
-
-:_plat_web
-en : Website
-
-:_plat_oth
-en : Other
-
-
-# Release media
-
-:_med_cd
-en : [quant,_1,CD,CDs]
-
-:_med_dvd
-en : [quant,_1,DVD,DVDs]
-
-:_med_gdr
-en : [quant,_1,GD-ROM,GD-ROMs]
-
-:_med_blr
-en : [quant,_1,Blu-ray disc,Blu-ray discs]
-
-:_med_flp
-en : [quant,_1,Floppy,Floppies]
-
-:_med_mrt
-en : [quant,_1,Cartridge,Cartridges]
-
-:_med_mem
-en : [quant,_1,Memory card,Memory cards]
-
-:_med_umd
-en : [quant,_1,UMD,UMDs]
-
-:_med_nod
-en : Nintendo Optical [quant,_1,Disk,Disks]
-
-:_med_in
-en : Internet download
-
-:_med_otc
-en : Other
-
-
# VN relations
:_vnrel_seq
@@ -304,18 +71,6 @@ en : Fandisc
en : Original game
-# producer types
-
-:_ptype_co
-en : Company
-
-:_ptype_in
-en : Individual
-
-:_ptype_ng
-en : Amateur group
-
-
# producer relations
:_prodrel_old
@@ -343,42 +98,6 @@ en : Spawned
en : Originated from
-# release types
-
-:_rtype_complete
-en : Complete
-
-:_rtype_partial
-en : Partial
-
-:_rtype_trial
-en : Trial
-
-
-# Anime types
-
-:_animetype_tv
-en : TV Series
-
-:_animetype_ova
-en : OVA
-
-:_animetype_mov
-en : Movie
-
-:_animetype_oth
-en : Other
-
-:_animetype_web
-en : Web
-
-:_animetype_spe
-en : TV Special
-
-:_animetype_mv
-en : Music Video
-
-
# Discussion board types
:_dboard_an
@@ -415,18 +134,6 @@ en : low
en : blacklist
-# screen resolutions
-
-:_scrres_unknown
-en : Unknown / console / handheld
-
-:_scrres_nonstandard
-en : Non-standard
-
-:_scrres_ws
-en : widescreen
-
-
# 'Voiced' information for releases
:_voiced_1
@@ -490,24 +197,6 @@ en : excellent
en : masterpiece
-# VN lengths
-
-:_vnlength_1
-en : Very short[index,_1,, (< 2 hours), (OMGWTFOTL~, Jouka no Monshou~, The world to reverse)]
-
-:_vnlength_2
-en : Short[index,_1,, (2 - 10 hours), (Narcissu~, Saya no Uta~, Planetarian)]
-
-:_vnlength_3
-en : Medium[index,_1,, (10 - 30 hours), (Yume Miru Kusuri~, Cross†Channel~, Crescendo)]
-
-:_vnlength_4
-en : Long[index,_1,, (30 - 50 hours), (Tsukihime~, Ever17~, Demonbane)]
-
-:_vnlength_5
-en : Very long[index,_1,, (> 50 hours), (Clannad~, Umineko~, Fate/Stay Night)]
-
-
# VN list statuses
:_rlist_status_1