Skip to content

fix: chinese translation - #423

Open
FangcatChina wants to merge 1 commit into
Vanilla-OS:mainfrom
FangcatChina:translation
Open

FangcatChina wants to merge 1 commit into
Vanilla-OS:mainfrom
FangcatChina:translation

Conversation

@FangcatChina

@FangcatChina FangcatChina commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

According to this post, gettext currently doesn't support locales like zh_Hans or zh_Hant and only accepts zh_CN, zh_SG, zh_HK and zh_TW.

The error cannot be reproduced until the package has been built.

Available Chinese locales:

fang@vanilla:/var/home/fang$ locale -a | grep zh_
lzh_TW            # Literary Chinese, unrelated
zh_CN             # Simplified Chinese, Mainland China
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
zh_HK             # Traditional Chinese, Hong Kong
zh_HK.utf8
zh_SG             # Simplified Chinese, Singapore
zh_SG.gbk
zh_SG.utf8
zh_TW             # Traditional Chinese, Taiwan
zh_TW.euctw
zh_TW.utf8

Using zh_Hans.po:
zh_hans

Using zh_CN.po:
zh_cn

Besides, translations between them are slightly different. For instance, despite both using Traditional Chinese, the Traditional form corresponding to Simplified Chinese “为” is written as “爲” in Hong Kong but “為” in Taiwan.

Therefore, it is necessary to rename the locales and split them clearly. However, as someone who grew up in Mainland China, I could not check all the translations or correct their differences. So I have no choice but to copy them.

@FangcatChina

FangcatChina commented Oct 5, 2026 •

Copy link
Copy Markdown
Member Author

Same changes should also be applied to vanilla-installer, vanilla-prime-utility, vanilla-updates-utility, abroot-rollback-notifier and sideload-utility, which may be a large amount of work. Since then, please let me know promptly whether the changes are valid.

@NN708
NN708 requested a review from a team October 5, 2026 15:52
@NN708
NN708 requested a review from kbdharun October 10, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants