Skip to content

Commit

Permalink
l10n: Make the zh-CN -> zh-Hans comment a HACK
Browse files Browse the repository at this point in the history
  • Loading branch information
Athanasius committed Dec 11, 2021
1 parent 72fc780 commit fc3a7b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l10n.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ def wszarray_to_list(array):
):
languages = wszarray_to_list(buf)

# OneSky calls "Chinese Simplified" "zh-Hans" in the name of the file,
# but that will be zh-CN in terms of locale. So map zh-CN -> 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
# locale. So map zh-CN -> zh-Hans
languages = ['zh-Hans' if lang == 'zh-CN' else lang for lang in languages]

return languages
Expand Down

0 comments on commit fc3a7b3

Please sign in to comment.