#29587: Problem with "Plural-forms" generated in PO file for Haitian Language
-------------------------------+--------------------------------------
Reporter: Ed Menendez | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.11
Severity: Normal | Resolution: invalid
Keywords: i18n, haitian | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Ramiro Morales):
* status: new => closed
* resolution: => invalid
Comment:
Hi Ed,
When you run makemessages for the first time (i.e. a `django.po` file is
going to be created for you), these plural form PO files header fields are
copied by Django from its own .po files (found in
`django/conf/locale/<LOCALE NAME>/LC_MESSAGES/*.po`)
There is no locally available database of plural forms formulas, nor a
fancy scheme to e.g. get it from a repository.
This means Django unfortunately has no way to insert the right header
there because there is no `ht` translation for Django itself so there is
no `django/conf/locale/ht/LC_MESSAGES/*.po` and so the generic `"Plural-
Forms: nplurals=INTEGER; plural=EXPRESSION;\n"` value as written by the
GNU gettext CLI tools is left intact.
One workaround could be to use another locale with the same plural forms
formula, like `es`, but then you'll have to edit the `Language*` fields
:-(
--
Ticket URL: <https://code.djangoproject.com/ticket/29587#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.7304803df86ad5141a53b11324585319%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.