Opened 14 years ago
Closed 14 years ago
#17065 closed Bug (invalid)
Plural forms are broken in (at least) Russian .po
| Reported by: | Nikolay Zakharov | Owned by: | nobody |
|---|---|---|---|
| Component: | Translations | Version: | 1.3 |
| Severity: | Normal | Keywords: | locale plural russian |
| Cc: | dimitris@… | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
It seems like we introduced plural forms breakage in some languages since the transition to transifex.net.
On the appropriate page one can try to search some plural words, like "week". Russian plural forms for week are "неделя", "недели", "недель". Transifex shows us that there are three forms but second and third are equal.
One can also inspect the current [[source:/trunk/django/conf/locale/ru/LC_MESSAGES/django.po|Russian django.po file]] and see that there are 3 forms defined in Plural-Forms header, but 4 msgstr[i] string for each words with plural forms. And msgstr[1]==msgstr[2]==msgstr[3].
Since this issue can occur in other languages (I suppose to check at least those languages mentioned in r15752) this ticket was created.
I am not a member of any translation team in transifex, so I can't fix it there and will just attach a patch against current git mirror as an example.
Attachments (2)
Change History (8)
by , 14 years ago
| Attachment: | russian_plural_forms.diff added |
|---|
comment:1 by , 14 years ago
comment:2 by , 14 years ago
| Cc: | added |
|---|
comment:3 by , 14 years ago
Upstream ticket (closed as invalid): http://trac.transifex.org/ticket/638
comment:4 by , 14 years ago
Okay, but the main thing is not about the number of plural forms. The current msgstrs are still wrong.
by , 14 years ago
| Attachment: | russian_plural_forms_with_fourth.diff added |
|---|
An updated Russian .po with fourth form.
comment:5 by , 14 years ago
| Easy pickings: | set |
|---|---|
| Has patch: | set |
| Triage Stage: | Unreviewed → Accepted |
comment:6 by , 14 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Reading the latest patch, I don't see anything which cannot be fixed at Transifex level. So please fix it in Transifex.
We generally follow the Unicode standard, which states four plural forms in total:
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html