Cleanup: Remove digit group separators from strgen and languages

This commit is contained in:
Rubidium 2024-02-08 21:51:38 +01:00 committed by rubidium42
parent b741b2ba6f
commit 7e2eefb91f
69 changed files with 0 additions and 149 deletions

View File

@ -3,8 +3,6 @@
##isocode af_ZA
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0436
##grflangid 0x1b

View File

@ -3,8 +3,6 @@
##isocode ar_EG
##plural 1
##textdir rtl
##digitsep ٬
##digitsepcur ٬
##decimalsep ٫
##winlangid 0x0c01
##grflangid 0x14

View File

@ -3,8 +3,6 @@
##isocode eu_ES
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x042d
##grflangid 0x21

View File

@ -3,8 +3,6 @@
##isocode be_BY
##plural 6
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0423
##grflangid 0x10

View File

@ -3,8 +3,6 @@
##isocode pt_BR
##plural 2
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0416
##grflangid 0x37

View File

@ -3,8 +3,6 @@
##isocode bg_BG
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0402
##grflangid 0x18

View File

@ -3,8 +3,6 @@
##isocode ca_ES
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0403
##grflangid 0x22

View File

@ -3,8 +3,6 @@
##isocode cv_RU
##plural 0
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0419
##grflangid 0x0b

View File

@ -3,8 +3,6 @@
##isocode hr_HR
##plural 6
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x041a
##grflangid 0x38

View File

@ -3,8 +3,6 @@
##isocode cs_CZ
##plural 10
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0405
##grflangid 0x15

View File

@ -3,8 +3,6 @@
##isocode da_DK
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0406
##grflangid 0x2d

View File

@ -3,8 +3,6 @@
##isocode nl_NL
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0413
##grflangid 0x1f

View File

@ -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 :{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}

View File

@ -3,8 +3,6 @@
##isocode en_AU
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0c09
##grflangid 0x3d

View File

@ -3,8 +3,6 @@
##isocode en_US
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0409
##grflangid 0x00

View File

@ -3,8 +3,6 @@
##isocode eo_EO
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0000
##grflangid 0x05

View File

@ -3,8 +3,6 @@
##isocode et_EE
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0425
##grflangid 0x34

View File

@ -3,8 +3,6 @@
##isocode fo_FO
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0438
##grflangid 0x12

View File

@ -3,8 +3,6 @@
##isocode fi_FI
##plural 0
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x040b
##grflangid 0x35

View File

@ -3,8 +3,6 @@
##isocode fr_FR
##plural 2
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x040c
##grflangid 0x03

View File

@ -3,8 +3,6 @@
##isocode fy_NL
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0462
##grflangid 0x32

View File

@ -3,8 +3,6 @@
##isocode gd_GB
##plural 13
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x083c
##grflangid 0x13

View File

@ -3,8 +3,6 @@
##isocode gl_ES
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0456
##grflangid 0x31

View File

@ -3,8 +3,6 @@
##isocode de_DE
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0407
##grflangid 0x02

View File

@ -3,8 +3,6 @@
##isocode el_GR
##plural 2
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0408
##grflangid 0x1e

View File

@ -3,8 +3,6 @@
##isocode he_IL
##plural 0
##textdir rtl
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x040d
##grflangid 0x61

View File

@ -3,8 +3,6 @@
##isocode hi_IN
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0439
##grflangid 0x17

View File

@ -3,8 +3,6 @@
##isocode hu_HU
##plural 2
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x040e
##grflangid 0x24

View File

@ -3,8 +3,6 @@
##isocode is_IS
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x040f
##grflangid 0x29

View File

@ -3,8 +3,6 @@
##isocode io_IO
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0000
##grflangid 0x06

View File

@ -3,8 +3,6 @@
##isocode id_ID
##plural 1
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0421
##grflangid 0x5a

View File

@ -3,8 +3,6 @@
##isocode ga_IE
##plural 4
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x083c
##grflangid 0x08

View File

@ -3,8 +3,6 @@
##isocode it_IT
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0410
##grflangid 0x27

View File

@ -3,8 +3,6 @@
##isocode ja_JP
##plural 1
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0411
##grflangid 0x39

View File

@ -3,8 +3,6 @@
##isocode ko_KR
##plural 11
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0412
##grflangid 0x3a

View File

@ -3,8 +3,6 @@
##isocode la_VA
##plural 0
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep .
##winlangid 0x0476
##grflangid 0x66

View File

@ -3,8 +3,6 @@
##isocode lv_LV
##plural 3
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0426
##grflangid 0x2a

View File

@ -3,8 +3,6 @@
##isocode lt_LT
##plural 5
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0427
##grflangid 0x2b

View File

@ -3,8 +3,6 @@
##isocode lb_LU
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x046e
##grflangid 0x23

View File

@ -3,8 +3,6 @@
##isocode mk_MK
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x042f
##grflangid 0x26

View File

@ -3,8 +3,6 @@
##isocode ms_MY
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x043a
##grflangid 0x3c

View File

@ -3,8 +3,6 @@
##isocode mt_MT
##plural 12
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x043a
##grflangid 0x09

View File

@ -3,8 +3,6 @@
##isocode mr_IN
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x044e
##grflangid 0x11

View File

@ -3,8 +3,6 @@
##isocode nb_NO
##plural 0
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0414
##grflangid 0x2f

View File

@ -3,8 +3,6 @@
##isocode nn_NO
##plural 0
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0814
##grflangid 0x0e

View File

@ -3,8 +3,6 @@
##isocode fa_IR
##plural 0
##textdir rtl
##digitsep ٬
##digitsepcur ٬
##decimalsep ٫
##winlangid 0x0429
##grflangid 0x62

View File

@ -3,8 +3,6 @@
##isocode pl_PL
##plural 7
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0415
##grflangid 0x30

View File

@ -3,8 +3,6 @@
##isocode pt_PT
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0816
##grflangid 0x36

View File

@ -3,8 +3,6 @@
##isocode ro_RO
##plural 14
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0418
##grflangid 0x28

View File

@ -3,8 +3,6 @@
##isocode ru_RU
##plural 6
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x0419
##grflangid 0x07

View File

@ -3,8 +3,6 @@
##isocode sr_RS
##plural 6
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x7c1a
##grflangid 0x0d

View File

@ -3,8 +3,6 @@
##isocode zh_CN
##plural 1
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0804
##grflangid 0x56

View File

@ -3,8 +3,6 @@
##isocode sk_SK
##plural 10
##textdir ltr
##digitsep {NBSP}
##digitsepcur {NBSP}
##decimalsep ,
##winlangid 0x041b
##grflangid 0x16

View File

@ -3,8 +3,6 @@
##isocode sl_SI
##plural 8
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0424
##grflangid 0x2c

View File

@ -3,8 +3,6 @@
##isocode es_ES
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0c0a
##grflangid 0x04

View File

@ -3,8 +3,6 @@
##isocode es_MX
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x080a
##grflangid 0x55

View File

@ -3,8 +3,6 @@
##isocode sv_SE
##plural 0
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x081d
##grflangid 0x2e

View File

@ -3,8 +3,6 @@
##isocode ta_IN
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0449
##grflangid 0x0a

View File

@ -3,8 +3,6 @@
##isocode th_TH
##plural 1
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x041e
##grflangid 0x42

View File

@ -3,8 +3,6 @@
##isocode zh_TW
##plural 1
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0404
##grflangid 0x0c

View File

@ -3,8 +3,6 @@
##isocode tr_TR
##plural 1
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x041f
##grflangid 0x3e

View File

@ -3,8 +3,6 @@
##isocode uk_UA
##plural 6
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x0422
##grflangid 0x33

View File

@ -3,8 +3,6 @@
##isocode ur_PK
##plural 0
##textdir rtl
##digitsep ٬
##digitsepcur ٬
##decimalsep ٫
##winlangid 0x0420
##grflangid 0x5c

View File

@ -3,8 +3,6 @@
##isocode vi_VN
##plural 1
##textdir ltr
##digitsep .
##digitsepcur .
##decimalsep ,
##winlangid 0x042a
##grflangid 0x54

View File

@ -3,8 +3,6 @@
##isocode cy_GB
##plural 0
##textdir ltr
##digitsep ,
##digitsepcur ,
##decimalsep .
##winlangid 0x0452
##grflangid 0x0f

View File

@ -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.

View File

@ -137,12 +137,6 @@ void FileStringReader::HandlePragma(char *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));

View File

@ -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;

View File

@ -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));
}