Opened 19 years ago

Closed 19 years ago

Last modified 17 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: no UI/UX: no

Description

Updated Simplified Chinese i18n translation file.

Attachments (2)

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

Download all attachments as: .zip

Change History (8)

by limodou@…, 19 years ago

Attachment: django.po added

comment:1 by limodou@…, 19 years ago

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

add in .po file header:

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

and simply translate only msgstr[0]

comment:4 by limodou@…, 19 years ago

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

by limodou@…, 19 years ago

Attachment: django_new.po added

new file 2005/11/11

comment:5 by hugo, 19 years ago

Status: newassigned

comment:6 by hugo, 19 years ago

Resolution: fixed
Status: assignedclosed

(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