Changeset - r28775:bd4e0aa0ac32
[Not reviewed]
master
! ! !
Rubidium - 2 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
 
@@ -3,8 +3,6 @@
 
##isocode af_ZA
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0436
 
##grflangid 0x1b
src/lang/arabic_egypt.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ar_EG
 
##plural 1
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0c01
 
##grflangid 0x14
src/lang/basque.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode eu_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042d
 
##grflangid 0x21
src/lang/belarusian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode be_BY
 
##plural 6
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0423
 
##grflangid 0x10
src/lang/brazilian_portuguese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode pt_BR
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0416
 
##grflangid 0x37
src/lang/bulgarian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode bg_BG
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0402
 
##grflangid 0x18
src/lang/catalan.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ca_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0403
 
##grflangid 0x22
src/lang/chuvash.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode cv_RU
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0419
 
##grflangid 0x0b
src/lang/croatian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode hr_HR
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x041a
 
##grflangid 0x38
src/lang/czech.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode cs_CZ
 
##plural 10
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0405
 
##grflangid 0x15
src/lang/danish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode da_DK
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0406
 
##grflangid 0x2d
src/lang/dutch.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode nl_NL
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0413
 
##grflangid 0x1f
src/lang/english.txt
Show inline comments
 
@@ -5,8 +5,6 @@
 
##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
 
@@ -5812,11 +5810,6 @@ STR_TOWN_NAME                           
 
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}
src/lang/english_AU.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode en_AU
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0c09
 
##grflangid 0x3d
src/lang/english_US.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode en_US
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0409
 
##grflangid 0x00
src/lang/esperanto.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode eo_EO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0000
 
##grflangid 0x05
src/lang/estonian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode et_EE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0425
 
##grflangid 0x34
src/lang/faroese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode fo_FO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0438
 
##grflangid 0x12
src/lang/finnish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode fi_FI
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x040b
 
##grflangid 0x35
src/lang/french.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode fr_FR
 
##plural 2
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x040c
 
##grflangid 0x03
src/lang/frisian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode fy_NL
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0462
 
##grflangid 0x32
src/lang/gaelic.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode gd_GB
 
##plural 13
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x083c
 
##grflangid 0x13
src/lang/galician.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode gl_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0456
 
##grflangid 0x31
src/lang/german.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode de_DE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0407
 
##grflangid 0x02
src/lang/greek.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode el_GR
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0408
 
##grflangid 0x1e
src/lang/hebrew.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode he_IL
 
##plural 0
 
##textdir rtl
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x040d
 
##grflangid 0x61
src/lang/hindi.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode hi_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0439
 
##grflangid 0x17
src/lang/hungarian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode hu_HU
 
##plural 2
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x040e
 
##grflangid 0x24
src/lang/icelandic.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode is_IS
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x040f
 
##grflangid 0x29
src/lang/ido.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode io_IO
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0000
 
##grflangid 0x06
src/lang/indonesian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode id_ID
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0421
 
##grflangid 0x5a
src/lang/irish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ga_IE
 
##plural 4
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x083c
 
##grflangid 0x08
src/lang/italian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode it_IT
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0410
 
##grflangid 0x27
src/lang/japanese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ja_JP
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0411
 
##grflangid 0x39
src/lang/korean.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ko_KR
 
##plural 11
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0412
 
##grflangid 0x3a
src/lang/latin.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode la_VA
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep .
 
##winlangid 0x0476
 
##grflangid 0x66
src/lang/latvian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode lv_LV
 
##plural 3
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0426
 
##grflangid 0x2a
src/lang/lithuanian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode lt_LT
 
##plural 5
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0427
 
##grflangid 0x2b
src/lang/luxembourgish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode lb_LU
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x046e
 
##grflangid 0x23
src/lang/macedonian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode mk_MK
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042f
 
##grflangid 0x26
src/lang/malay.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ms_MY
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x043a
 
##grflangid 0x3c
src/lang/maltese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode mt_MT
 
##plural 12
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x043a
 
##grflangid 0x09
src/lang/marathi.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode mr_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x044e
 
##grflangid 0x11
src/lang/norwegian_bokmal.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode nb_NO
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0414
 
##grflangid 0x2f
src/lang/norwegian_nynorsk.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode nn_NO
 
##plural 0
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0814
 
##grflangid 0x0e
src/lang/persian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode fa_IR
 
##plural 0
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0429
 
##grflangid 0x62
src/lang/polish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode pl_PL
 
##plural 7
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0415
 
##grflangid 0x30
src/lang/portuguese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode pt_PT
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0816
 
##grflangid 0x36
src/lang/romanian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ro_RO
 
##plural 14
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0418
 
##grflangid 0x28
src/lang/russian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ru_RU
 
##plural 6
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x0419
 
##grflangid 0x07
src/lang/serbian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode sr_RS
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x7c1a
 
##grflangid 0x0d
src/lang/simplified_chinese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode zh_CN
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0804
 
##grflangid 0x56
src/lang/slovak.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode sk_SK
 
##plural 10
 
##textdir ltr
 
##digitsep {NBSP}
 
##digitsepcur {NBSP}
 
##decimalsep ,
 
##winlangid 0x041b
 
##grflangid 0x16
src/lang/slovenian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode sl_SI
 
##plural 8
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0424
 
##grflangid 0x2c
src/lang/spanish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode es_ES
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0c0a
 
##grflangid 0x04
src/lang/spanish_MX.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode es_MX
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x080a
 
##grflangid 0x55
src/lang/swedish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode sv_SE
 
##plural 0
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x081d
 
##grflangid 0x2e
src/lang/tamil.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ta_IN
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0449
 
##grflangid 0x0a
src/lang/thai.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode th_TH
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x041e
 
##grflangid 0x42
src/lang/traditional_chinese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode zh_TW
 
##plural 1
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0404
 
##grflangid 0x0c
src/lang/turkish.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode tr_TR
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x041f
 
##grflangid 0x3e
src/lang/ukrainian.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode uk_UA
 
##plural 6
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x0422
 
##grflangid 0x33
src/lang/urdu.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode ur_PK
 
##plural 0
 
##textdir rtl
 
##digitsep ٬
 
##digitsepcur ٬
 
##decimalsep ٫
 
##winlangid 0x0420
 
##grflangid 0x5c
src/lang/vietnamese.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode vi_VN
 
##plural 1
 
##textdir ltr
 
##digitsep .
 
##digitsepcur .
 
##decimalsep ,
 
##winlangid 0x042a
 
##grflangid 0x54
src/lang/welsh.txt
Show inline comments
 
@@ -3,8 +3,6 @@
 
##isocode cy_GB
 
##plural 0
 
##textdir ltr
 
##digitsep ,
 
##digitsepcur ,
 
##decimalsep .
 
##winlangid 0x0452
 
##grflangid 0x0f
src/language.h
Show inline comments
 
@@ -35,10 +35,6 @@ struct LanguagePackHeader {
 
	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.
src/strgen/strgen.cpp
Show inline comments
 
@@ -137,12 +137,6 @@ void FileStringReader::HandlePragma(char
 
		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));
src/strgen/strgen_base.cpp
Show inline comments
 
@@ -758,8 +758,6 @@ void StringReader::ParseFile()
 
	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;
src/strings.cpp
Show inline comments
 
@@ -1892,8 +1892,6 @@ bool LanguagePackHeader::IsValid() const
 
	       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));
 
}
 

	
0 comments (0 inline, 0 general)