#765 closed enhancement (fixed)
Simplified Chinese i18n translation file
Reported by: | Owned by: | hugo | |
---|---|---|---|
Component: | Translations | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Updated Simplified Chinese i18n translation file.
Attachments (2)
Change History (8)
by , 19 years ago
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Please don't delete stuff - it will be overwritten on the next generation. You need to set up the pluralization the right way and fill in the texts the right way. If Singular and Plural are identical, one option would be to put just the same sentence in both msgstr fields that are there for the pluralized message. Or check with the gettext documentation (or some other chinese i18n people) on how to do it right (maybe you just need to add a pluralization header that tells gettext that there is only one form?).
comment:3 by , 19 years ago
add in .po file header:
Plural-Forms: nplurals=1; plural=0;
and simply translate only msgstr[0]
comment:4 by , 19 years ago
Thanks to Nebojša Đorđević, it works. I'v finished the new translation file.
comment:5 by , 19 years ago
Status: | new → assigned |
---|
But I also found that, in Chinese there are no pluralism, so something I don't know how to deal with, just like:
#: core/validators.py:224
#, fuzzy, python-format
msgid "Watch your mouth! The word %s is not allowed here."
msgid_plural "Watch your mouth! The words %s are not allowed here."
msgstr[0] "小心你的嘴!%s 不允许在这里出现。"
msgstr[1] "小心你的嘴!%s 不允许在这里出现。"
msgid "Please enter a valid decimal number with at most %s total digit."
msgid_plural ""
"Please enter a valid decimal number with at most %s total digits."
msgstr[0] "请输入一个有效的小数,最多 %s 个数字。"
msgstr[1] "请输入一个有效的小数,最多 %s 个数字。"
#: core/validators.py:347
#, fuzzy, python-format
msgid "Please enter a valid decimal number with at most %s decimal place."
msgid_plural ""
"Please enter a valid decimal number with at most %s decimal places."
msgstr[0] "请输入一个有效的小数,最多 %s 个小数位。"
msgstr[1] "请输入一个有效的小数,最多 %s 个小数位。"
I'm simplily detele them, and change them as:
#: core/validators.py:224
#, python-format
msgid "Watch your mouth! The word %s is not allowed here."
msgstr "小心你的嘴!%s 不允许在这里出现。"
I don't know if it is suit for this situation.