Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#765 closed enhancement (fixed)

Simplified Chinese i18n translation file

Reported by: limodou@… 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: UI/UX:

Description

Updated Simplified Chinese i18n translation file.

Attachments (2)

django.po (24.3 KB) - added by limodou@… 10 years ago.
django_new.po (24.6 KB) - added by limodou@… 10 years ago.
new file 2005/11/11

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by limodou@…

comment:1 Changed 10 years ago by limodou@…

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.

comment:2 Changed 10 years ago by hugo

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 Changed 10 years ago by Nebojša Đorđević - nesh <nesh@…>

add in .po file header:

Plural-Forms: nplurals=1; plural=0;

and simply translate only msgstr[0]

comment:4 Changed 10 years ago by limodou@…

Thanks to Nebojša Đorđević, it works. I'v finished the new translation file.

Changed 10 years ago by limodou@…

new file 2005/11/11

comment:5 Changed 10 years ago by hugo

  • Status changed from new to assigned

comment:6 Changed 10 years ago by hugo

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [1168]) fixes #765, #767 and #770 - new sk, cs and zh_CN translations. thx vlado, Radek and limodou.

Note: See TracTickets for help on using tickets.
Back to Top