Skip to content

Commit db7f08a

Browse files
committed
Changed locales for the Asian languages so they'll load their symbols properly. zh_GB is now zh_CN, ja_JA is now ja_JP, and ko_KO is now ko_KR. This means that Chinese and Korean will work with trust voice's language when processing characters and symbols enabled. For Japanese, however, it's still advised to leave the setting off, as it can cause regressions since a lot of symbols in the Japnese dictionary do not have anything in their preserve field, so default to never.
1 parent 2b27820 commit db7f08a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

addon/synthDrivers/_ibmeci.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class ECICallbackReturn:
6464
'fra': (196608, _('French'), 'fr_FR', 'fr'),
6565
'frc': (196609, _('French Canadian'), 'fr_CA', ''),
6666
'fin': (589824, _('Finnish'), 'fi_FI', 'fi'),
67-
'chs': (393216, _('Chinese'), 'zh_GB', 'zh'),
68-
'jpn': (524288, _('Japanese'), 'ja_JA', 'jp'),
69-
'kor': (655360, _('Korean'), 'ko_KO', 'ko'),
67+
'chs': (393216, _('Chinese'), 'zh_CN', 'zh'),
68+
'jpn': (524288, _('Japanese'), 'ja_JP', 'jp'),
69+
'kor': (655360, _('Korean'), 'ko_KR', 'ko'),
7070
'deu': (262144, _('German'), 'de_DE', 'de'),
7171
'ita': (327680, _('Italian'), 'it_IT', 'it'),
7272
'enu': (65536, _('American English'), 'en_US', 'en'),

addon/synthDrivers/ibmeci.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ def unicode(s): return s
9292
"it":b"`l5",
9393
"it_IT":b"`l5",
9494
"zh":b"`l6",
95-
"zh_gb":b"`l6.0",
95+
"zh_cn":b"`l6.0",
9696
"pt":b"`l7",
9797
"pt_BR":b"`l7.0",
9898
"pt_PT":b"`l7.1",
9999
"ja":b"`l8",
100-
"ja_ja":b"`l8.0",
100+
"ja_jp":b"`l8.0",
101101
"ko":b"`l10",
102-
"ko_ko":b"`l10.0",
102+
"ko_kr":b"`l10.0",
103103
"fi":b"`l9",
104104
"fi_FI":b"`l9.0"
105105
}

0 commit comments

Comments
 (0)