mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-07 10:51:04 +03:00
[Minor] Remove Debug Print Statements
This commit is contained in:
parent
e8497c22e6
commit
22aa4adc6e
4
l10n.py
4
l10n.py
@ -307,14 +307,12 @@ class _Locale:
|
|||||||
else:
|
else:
|
||||||
current_locale = win32api.GetUserDefaultLangID()
|
current_locale = win32api.GetUserDefaultLangID()
|
||||||
lang = locale.windows_locale[current_locale]
|
lang = locale.windows_locale[current_locale]
|
||||||
print(lang)
|
|
||||||
# HACK: <n/a> | 2021-12-11: OneSky calls "Chinese Simplified" "zh-Hans"
|
# HACK: <n/a> | 2021-12-11: OneSky calls "Chinese Simplified" "zh-Hans"
|
||||||
# in the name of the file, but that will be zh-CN in terms of
|
# in the name of the file, but that will be zh-CN in terms of
|
||||||
# locale. So map zh-CN -> zh-Hans
|
# locale. So map zh-CN -> zh-Hans
|
||||||
languages = [lang.replace('_', '-')] if lang else []
|
languages = [lang.replace('_', '-')] if lang else []
|
||||||
languages = ['zh-Hans' if lang == 'zh-CN' else lang for lang in languages]
|
languages = ['zh-Hans' if lang == 'zh-CN' else lang for lang in languages]
|
||||||
print(languages)
|
return languages
|
||||||
return ['en-US']
|
|
||||||
|
|
||||||
|
|
||||||
# singletons
|
# singletons
|
||||||
|
Loading…
x
Reference in New Issue
Block a user