Changeset - r28775:bd4e0aa0ac32
[Not reviewed]
master
! ! !
Rubidium - 3 months ago 2024-02-08 20:51:38
rubidium@openttd.org
Cleanup: Remove digit group separators from strgen and languages
69 files changed with 0 insertions and 149 deletions:
0 comments (0 inline, 0 general)
src/lang/afrikaans.txt
Show inline comments
 
##name Afrikaans
 
##ownname Afrikaans
 
##isocode af_ZA
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0436
 
##grflangid 0x1b
 
##gender male
 

	
 

	
src/lang/arabic_egypt.txt
Show inline comments
 
##name Arabic (Egypt)
 
##ownname Arabic (Egypt)
 
##isocode ar_EG
 
##plural 1
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0c01
 
##grflangid 0x14
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/basque.txt
Show inline comments
 
##name Basque
 
##ownname Euskara
 
##isocode eu_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042d
 
##grflangid 0x21
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/belarusian.txt
Show inline comments
 
##name Belarusian
 
##ownname Беларуская
 
##isocode be_BY
 
##plural 6
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0423
 
##grflangid 0x10
 
##gender m f n p
 
##case m f n p nom gen dat acc abl pre
 

	
src/lang/brazilian_portuguese.txt
Show inline comments
 
##name Portuguese (Brazilian)
 
##ownname Português (BR)
 
##isocode pt_BR
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0416
 
##grflangid 0x37
 
##gender m f
 

	
 

	
src/lang/bulgarian.txt
Show inline comments
 
##name Bulgarian
 
##ownname Български
 
##isocode bg_BG
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0402
 
##grflangid 0x18
 
##gender m f n p
 
##case m f n p
 

	
src/lang/catalan.txt
Show inline comments
 
##name Catalan
 
##ownname Català
 
##isocode ca_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0403
 
##grflangid 0x22
 
##gender Masculin Femenin
 

	
 

	
src/lang/chuvash.txt
Show inline comments
 
##name Chuvash
 
##ownname Чӑвашла
 
##isocode cv_RU
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0419
 
##grflangid 0x0b
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/croatian.txt
Show inline comments
 
##name Croatian
 
##ownname Hrvatski
 
##isocode hr_HR
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x041a
 
##grflangid 0x38
 
##gender male female middle
 
##case nom gen dat aku vok lok ins
 

	
src/lang/czech.txt
Show inline comments
 
##name Czech
 
##ownname Čeština
 
##isocode cs_CZ
 
##plural 10
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0405
 
##grflangid 0x15
 
##gender m f n map mnp fp np
 
##case nom gen dat acc voc loc ins big small
 

	
src/lang/danish.txt
Show inline comments
 
##name Danish
 
##ownname Dansk
 
##isocode da_DK
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0406
 
##grflangid 0x2d
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/dutch.txt
Show inline comments
 
##name Dutch
 
##ownname Nederlands
 
##isocode nl_NL
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0413
 
##grflangid 0x1f
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/english.txt
Show inline comments
 
@@ -2,14 +2,12 @@
 
##ownname English (UK)
 
##isocode en_GB
 
##plural 0
 
##textdir ltr
 
##numberformat 00,000,000,000,000,000,000
 
##numberabbreviations 3=00,000,000,000,000,000{NBSP}k|6=00,000,000,000,000{NBSP}m|9=00,000,000,000{NBSP}bn|12=00,000,000{NBSP}tn|15=00,000{NBSP}Qa|18=00{NBSP}Qi
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0809
 
##grflangid 0x01
 

	
 

	
 
# This file is part of OpenTTD.
 
@@ -5809,17 +5807,12 @@ STR_PRESIDENT_NAME                      
 
STR_SIGN_NAME                                                   :{SIGN}
 
STR_STATION_NAME                                                :{STATION}
 
STR_TOWN_NAME                                                   :{TOWN}
 
STR_VEHICLE_NAME                                                :{VEHICLE}
 
STR_WAYPOINT_NAME                                               :{WAYPOINT}
 

	
 
STR_CURRENCY_SHORT_KILO                                         :{NBSP}k
 
STR_CURRENCY_SHORT_MEGA                                         :{NBSP}m
 
STR_CURRENCY_SHORT_GIGA                                         :{NBSP}bn
 
STR_CURRENCY_SHORT_TERA                                         :{NBSP}tn
 

	
 
STR_JUST_CARGO                                                  :{CARGO_LONG}
 
STR_JUST_RIGHT_ARROW                                            :{RIGHT_ARROW}
 
STR_JUST_CHECKMARK                                              :{CHECKMARK}
 
STR_JUST_COMMA                                                  :{COMMA}
 
STR_JUST_CURRENCY_SHORT                                         :{CURRENCY_SHORT}
 
STR_JUST_CURRENCY_LONG                                          :{CURRENCY_LONG}
src/lang/english_AU.txt
Show inline comments
 
##name English (AU)
 
##ownname English (AU)
 
##isocode en_AU
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0c09
 
##grflangid 0x3d
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/english_US.txt
Show inline comments
 
##name English (US)
 
##ownname English (US)
 
##isocode en_US
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0409
 
##grflangid 0x00
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/esperanto.txt
Show inline comments
 
##name Esperanto
 
##ownname Esperanto
 
##isocode eo_EO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0000
 
##grflangid 0x05
 
##case n
 

	
 

	
src/lang/estonian.txt
Show inline comments
 
##name Estonian
 
##ownname Eesti keel
 
##isocode et_EE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0425
 
##grflangid 0x34
 
##case g in sü
 

	
 

	
src/lang/faroese.txt
Show inline comments
 
##name Faroese
 
##ownname Føroyskt
 
##isocode fo_FO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0438
 
##grflangid 0x12
 
##gender m f n
 

	
 

	
src/lang/finnish.txt
Show inline comments
 
##name Finnish
 
##ownname Suomi
 
##isocode fi_FI
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x040b
 
##grflangid 0x35
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/french.txt
Show inline comments
 
##name French
 
##ownname Français
 
##isocode fr_FR
 
##plural 2
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x040c
 
##grflangid 0x03
 
##gender m m2 f
 

	
 

	
src/lang/frisian.txt
Show inline comments
 
##name Frisian
 
##ownname Frysk
 
##isocode fy_NL
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0462
 
##grflangid 0x32
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/gaelic.txt
Show inline comments
 
##name Scottish Gaelic
 
##ownname Gàidhlig
 
##isocode gd_GB
 
##plural 13
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x083c
 
##grflangid 0x13
 
##gender m f
 
##case nom gen dat voc
 

	
src/lang/galician.txt
Show inline comments
 
##name Galician
 
##ownname Galego
 
##isocode gl_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0456
 
##grflangid 0x31
 
##gender m f n
 

	
 

	
src/lang/german.txt
Show inline comments
 
##name German
 
##ownname Deutsch
 
##isocode de_DE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0407
 
##grflangid 0x02
 
##gender m w n p
 

	
 

	
src/lang/greek.txt
Show inline comments
 
##name Greek
 
##ownname Ελληνικά
 
##isocode el_GR
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0408
 
##grflangid 0x1e
 
##gender m f n
 
##case subs date geniki
 

	
src/lang/hebrew.txt
Show inline comments
 
##name Hebrew
 
##ownname עברית
 
##isocode he_IL
 
##plural 0
 
##textdir rtl
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x040d
 
##grflangid 0x61
 
##gender m f
 
##case singular plural gen
 

	
src/lang/hindi.txt
Show inline comments
 
##name Hindi
 
##ownname हिन्दी
 
##isocode hi_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0439
 
##grflangid 0x17
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/hungarian.txt
Show inline comments
 
##name Hungarian
 
##ownname Magyar
 
##isocode hu_HU
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x040e
 
##grflangid 0x24
 
##case t ba
 

	
 

	
src/lang/icelandic.txt
Show inline comments
 
##name Icelandic
 
##ownname Íslenska
 
##isocode is_IS
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x040f
 
##grflangid 0x29
 
##gender karlkyn kvenkyn hvorugkyn
 

	
 

	
src/lang/ido.txt
Show inline comments
 
##name Ido
 
##ownname Ido
 
##isocode io_IO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0000
 
##grflangid 0x06
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/indonesian.txt
Show inline comments
 
##name Indonesian
 
##ownname Bahasa Indonesia
 
##isocode id_ID
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0421
 
##grflangid 0x5a
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/irish.txt
Show inline comments
 
##name Irish
 
##ownname Gaeilge
 
##isocode ga_IE
 
##plural 4
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x083c
 
##grflangid 0x08
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/italian.txt
Show inline comments
 
##name Italian
 
##ownname Italiano
 
##isocode it_IT
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0410
 
##grflangid 0x27
 
##gender m ma f
 
##case ms mp fs fp
 

	
src/lang/japanese.txt
Show inline comments
 
##name Japanese
 
##ownname 日本語
 
##isocode ja_JP
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0411
 
##grflangid 0x39
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/korean.txt
Show inline comments
 
##name Korean
 
##ownname 한국어
 
##isocode ko_KR
 
##plural 11
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0412
 
##grflangid 0x3a
 
##gender m f
 

	
 

	
src/lang/latin.txt
Show inline comments
 
##name Latin
 
##ownname Latina
 
##isocode la_VA
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep .
 
##winlangid 0x0476
 
##grflangid 0x66
 
##gender m f n mp fp np
 
##case gen acc abl dat
 

	
src/lang/latvian.txt
Show inline comments
 
##name Latvian
 
##ownname Latviešu
 
##isocode lv_LV
 
##plural 3
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0426
 
##grflangid 0x2a
 
##gender m f
 
##case kas
 

	
src/lang/lithuanian.txt
Show inline comments
 
##name Lithuanian
 
##ownname Lietuvių
 
##isocode lt_LT
 
##plural 5
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0427
 
##grflangid 0x2b
 
##gender vyr mot
 
##case kas ko kam ka kuo kur kreip
 

	
src/lang/luxembourgish.txt
Show inline comments
 
##name Luxembourgish
 
##ownname Lëtzebuergesch
 
##isocode lb_LU
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x046e
 
##grflangid 0x23
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/macedonian.txt
Show inline comments
 
##name Macedonian
 
##ownname Македонски
 
##isocode mk_MK
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042f
 
##grflangid 0x26
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/malay.txt
Show inline comments
 
##name Malay
 
##ownname Melayu
 
##isocode ms_MY
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x043a
 
##grflangid 0x3c
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/maltese.txt
Show inline comments
 
##name Maltese
 
##ownname Malti
 
##isocode mt_MT
 
##plural 12
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x043a
 
##grflangid 0x09
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/marathi.txt
Show inline comments
 
##name Marathi
 
##ownname मराठी
 
##isocode mr_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x044e
 
##grflangid 0x11
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/norwegian_bokmal.txt
Show inline comments
 
##name Norwegian (Bokmal)
 
##ownname Norsk (bokmål)
 
##isocode nb_NO
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0414
 
##grflangid 0x2f
 
##gender masculine feminine neuter
 
##case small
 

	
src/lang/norwegian_nynorsk.txt
Show inline comments
 
##name Norwegian (Nynorsk)
 
##ownname Norsk (nynorsk)
 
##isocode nn_NO
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0814
 
##grflangid 0x0e
 
##gender masculine feminine neuter
 
##case small
 

	
src/lang/persian.txt
Show inline comments
 
##name Persian
 
##ownname فارسی
 
##isocode fa_IR
 
##plural 0
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0429
 
##grflangid 0x62
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/polish.txt
Show inline comments
 
##name Polish
 
##ownname Polski
 
##isocode pl_PL
 
##plural 7
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0415
 
##grflangid 0x30
 
##gender m f n
 
##case d c b n m w
 

	
src/lang/portuguese.txt
Show inline comments
 
##name Portuguese
 
##ownname Português
 
##isocode pt_PT
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0816
 
##grflangid 0x36
 
##gender n m f mp fp
 

	
 

	
src/lang/romanian.txt
Show inline comments
 
##name Romanian
 
##ownname Română
 
##isocode ro_RO
 
##plural 14
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0418
 
##grflangid 0x28
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/russian.txt
Show inline comments
 
##name Russian
 
##ownname Русский
 
##isocode ru_RU
 
##plural 6
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0419
 
##grflangid 0x07
 
##gender m f n p
 
##case m f n p nom gen dat acc abl pre
 

	
src/lang/serbian.txt
Show inline comments
 
##name Serbian
 
##ownname Srpski
 
##isocode sr_RS
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x7c1a
 
##grflangid 0x0d
 
##gender muški ženski srednji
 
##case nom big gen dat aku vok lok ins
 

	
src/lang/simplified_chinese.txt
Show inline comments
 
##name Chinese (Simplified)
 
##ownname 简体中文
 
##isocode zh_CN
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0804
 
##grflangid 0x56
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/slovak.txt
Show inline comments
 
##name Slovak
 
##ownname Slovenčina
 
##isocode sk_SK
 
##plural 10
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x041b
 
##grflangid 0x16
 
##gender m z s
 
##case g
 

	
src/lang/slovenian.txt
Show inline comments
 
##name Slovenian
 
##ownname Slovenščina
 
##isocode sl_SI
 
##plural 8
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0424
 
##grflangid 0x2c
 
##case r d t
 

	
 

	
src/lang/spanish.txt
Show inline comments
 
##name Spanish
 
##ownname Español (ES)
 
##isocode es_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0c0a
 
##grflangid 0x04
 
##gender m f
 

	
 

	
src/lang/spanish_MX.txt
Show inline comments
 
##name Spanish (Mexican)
 
##ownname Español (MX)
 
##isocode es_MX
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x080a
 
##grflangid 0x55
 
##gender m f
 

	
 

	
src/lang/swedish.txt
Show inline comments
 
##name Swedish
 
##ownname Svenska
 
##isocode sv_SE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x081d
 
##grflangid 0x2e
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/tamil.txt
Show inline comments
 
##name Tamil
 
##ownname தமிழ்
 
##isocode ta_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0449
 
##grflangid 0x0a
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/thai.txt
Show inline comments
 
##name Thai
 
##ownname Thai
 
##isocode th_TH
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x041e
 
##grflangid 0x42
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/traditional_chinese.txt
Show inline comments
 
##name Chinese (Traditional)
 
##ownname 繁體中文
 
##isocode zh_TW
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0404
 
##grflangid 0x0c
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/turkish.txt
Show inline comments
 
##name Turkish
 
##ownname Türkçe
 
##isocode tr_TR
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x041f
 
##grflangid 0x3e
 
##case tamlanan
 

	
 

	
src/lang/ukrainian.txt
Show inline comments
 
##name Ukrainian
 
##ownname Українська
 
##isocode uk_UA
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0422
 
##grflangid 0x33
 
##gender m f s mn
 
##case r d z
 

	
src/lang/urdu.txt
Show inline comments
 
##name Urdu
 
##ownname Urdu
 
##isocode ur_PK
 
##plural 0
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0420
 
##grflangid 0x5c
 
##gender m f
 

	
 

	
src/lang/vietnamese.txt
Show inline comments
 
##name Vietnamese
 
##ownname Tiếng Việt
 
##isocode vi_VN
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042a
 
##grflangid 0x54
 

	
 

	
 
# This file is part of OpenTTD.
src/lang/welsh.txt
Show inline comments
 
##name Welsh
 
##ownname Cymraeg
 
##isocode cy_GB
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0452
 
##grflangid 0x0f
 

	
 

	
 
# This file is part of OpenTTD.
src/language.h
Show inline comments
 
@@ -32,16 +32,12 @@ struct LanguagePackHeader {
 
	uint16_t offsets[TEXT_TAB_END]; ///< the offsets
 

	
 
	/** The raw formatting string for numbers. */
 
	char number_format[64];
 
	/** The raw formatting string for number abbreviations. */
 
	char number_abbreviations[256];
 
	/** Thousand separator used for anything not currencies */
 
	char digit_group_separator[8];
 
	/** Thousand separator used for currencies */
 
	char digit_group_separator_currency[8];
 
	/** Decimal separator */
 
	char digit_decimal_separator[8];
 
	uint16_t missing;     ///< number of missing strings.
 
	byte plural_form;   ///< plural form index
 
	byte text_dir;      ///< default direction of the text
 
	/**
src/strgen/strgen.cpp
Show inline comments
 
@@ -134,18 +134,12 @@ void FileStringReader::HandlePragma(char
 

	
 
		NumberAbbreviations abbreviations;
 
		auto result = ParseNumberAbbreviations(abbreviations, str);
 
		if (result.has_value()) FatalError("Invalid number abbreviations: {}", *result);
 

	
 
		strecpy(_lang.number_abbreviations, str, lastof(_lang.number_abbreviations));
 
	} else if (!memcmp(str, "digitsep ", 9)) {
 
		str += 9;
 
		strecpy(_lang.digit_group_separator, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang.digit_group_separator));
 
	} else if (!memcmp(str, "digitsepcur ", 12)) {
 
		str += 12;
 
		strecpy(_lang.digit_group_separator_currency, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang.digit_group_separator_currency));
 
	} else if (!memcmp(str, "decimalsep ", 11)) {
 
		str += 11;
 
		strecpy(_lang.digit_decimal_separator, strcmp(str, "{NBSP}") == 0 ? NBSP : str, lastof(_lang.digit_decimal_separator));
 
	} else if (!memcmp(str, "winlangid ", 10)) {
 
		const char *buf = str + 10;
 
		long langid = std::strtol(buf, nullptr, 16);
src/strgen/strgen_base.cpp
Show inline comments
 
@@ -755,14 +755,12 @@ void StringReader::ParseFile()
 
	if (!this->translation) _show_todo |= 4;
 

	
 
	/* For each new file we parse, reset the genders, and language codes. */
 
	MemSetT(&_lang, 0);
 
	strecpy(_lang.number_format, "00,000,000,000,000,000,000", lastof(_lang.number_format));
 
	strecpy(_lang.number_abbreviations, "3=00,000,000,000,000,000{NBSP}k|6=00,000,000,000,000{NBSP}m|9=00,000,000,000{NBSP}bn|12=00,000,000{NBSP}tn|15=00,000{NBSP}Qa|18=00{NBSP}Qi", lastof(_lang.number_abbreviations));
 
	strecpy(_lang.digit_group_separator, ",", lastof(_lang.digit_group_separator));
 
	strecpy(_lang.digit_group_separator_currency, ",", lastof(_lang.digit_group_separator_currency));
 
	strecpy(_lang.digit_decimal_separator, ".", lastof(_lang.digit_decimal_separator));
 

	
 
	_cur_line = 1;
 
	while (this->data.next_string_id < this->data.max_strings) {
 
		std::optional<std::string> line = this->ReadLine();
 
		if (!line.has_value()) return;
src/strings.cpp
Show inline comments
 
@@ -1889,14 +1889,12 @@ bool LanguagePackHeader::IsValid() const
 
	       this->num_cases    < MAX_NUM_CASES &&
 
	       StrValid(this->name,                           lastof(this->name)) &&
 
	       StrValid(this->own_name,                       lastof(this->own_name)) &&
 
	       StrValid(this->isocode,                        lastof(this->isocode)) &&
 
	       StrValid(this->number_format,                  lastof(this->number_format)) &&
 
	       StrValid(this->number_abbreviations,           lastof(this->number_abbreviations)) &&
 
	       StrValid(this->digit_group_separator,          lastof(this->digit_group_separator)) &&
 
	       StrValid(this->digit_group_separator_currency, lastof(this->digit_group_separator_currency)) &&
 
	       StrValid(this->digit_decimal_separator,        lastof(this->digit_decimal_separator));
 
}
 

	
 
/**
 
 * Check whether a translation is sufficiently finished to offer it to the public.
 
 */
0 comments (0 inline, 0 general)