Skip to content

Commit 6ce4ff7

Browse files
committed
merge tts chinese with translate versions, same with portuguese (not brazilian)
1 parent a5c48a0 commit 6ce4ff7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scratchattach/utils/supportedlangs.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Languages(Enum):
2828
Belarusian = _Language('Belarusian', 'be', None, None, None)
2929
Bulgarian = _Language('Bulgarian', 'bg', None, None, None)
3030
Catalan = _Language('Catalan', 'ca', None, None, None)
31-
Chinese_Traditional = _Language('Chinese (Traditional)', 'zh-tw', None, None, None)
31+
Chinese_Traditional = _Language('Chinese (Traditional)', 'zh-tw', ['zh-cn', 'zh-tw'], 'cmn-CN', True)
3232
Croatian = _Language('Croatian', 'hr', None, None, None)
3333
Czech = _Language('Czech', 'cs', None, None, None)
3434
Danish = _Language('Danish', 'da', ['da'], 'da-DK', False)
@@ -65,7 +65,7 @@ class Languages(Enum):
6565
Myanmar_Burmese = _Language('Myanmar (Burmese)', 'my', None, None, None)
6666
Persian = _Language('Persian', 'fa', None, None, None)
6767
Polish = _Language('Polish', 'pl', ['pl'], 'pl-PL', False)
68-
Portuguese = _Language('Portuguese', 'pt', None, None, None)
68+
Portuguese = _Language('Portuguese', 'pt', ['pt'], 'pt-PT', False)
6969
Romanian = _Language('Romanian', 'ro', ['ro'], 'ro-RO', True)
7070
Russian = _Language('Russian', 'ru', ['ru'], 'ru-RU', False)
7171
Scots_Gaelic = _Language('Scots Gaelic', 'gd', None, None, None)
@@ -83,14 +83,12 @@ class Languages(Enum):
8383
Welsh = _Language('Welsh', 'cy', ['cy'], 'cy-GB', True)
8484
Zulu = _Language('Zulu', 'zu', None, None, None)
8585
Hebrew = _Language('Hebrew', 'he', None, None, None)
86-
Chinese_Simplified = _Language('Chinese (Simplified)', 'zh-cn', None, None, None)
86+
Chinese_Simplified = _Language('Chinese (Simplified)', 'zh-cn', ['zh-cn', 'zh-tw'], 'cmn-CN', True)
8787
Mandarin = Chinese_Simplified
8888

89-
cmn_CN = _Language(None, None, ['zh-cn', 'zh-tw'], 'cmn-CN', True)
9089
nb_NO = _Language(None, None, ['nb', 'nn'], 'nb-NO', True)
9190
pt_BR = _Language(None, None, ['pt-br'], 'pt-BR', False)
9291
Brazilian = pt_BR
93-
pt_PT = _Language(None, None, ['pt'], 'pt-PT', False)
9492
es_ES = _Language(None, None, ['es'], 'es-ES', False)
9593
es_US = _Language(None, None, ['es-419'], 'es-US', False)
9694

0 commit comments

Comments
 (0)