#29587: Problem with "Plural-forms" generated in PO file for Haitian Language
-----------------------------------------+-------------------------------
               Reporter:  Ed Menendez    |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  1.11
               Severity:  Normal         |       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              |
-----------------------------------------+-------------------------------
 When you makemessages for locale=ht (Haitian language), it generates a
 plural-form like this:

 {{{"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"}}}

 It should instead look like this:

 {{{"Plural-Forms: nplurals=2; plural=(n != 1);\n"}}}

 The workaround is to manually edit the PO file after generation. If you
 try to use the incorrect PO file it will generate this error:

 {{{ValueError: "invalid token in plural form": EXPRESSION}}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29587>
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/053.d2e448359654b95b3374459e5501e0cc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to