#35352: Unable to continue using custom languages with Django
-------------------------------------+-------------------------------------
     Reporter:  Barney Szabolcs      |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:                       |                  Version:  5.0
  Internationalization               |
     Severity:  Release blocker      |               Resolution:
     Keywords:  custom languages     |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Barney Szabolcs):

 * easy:  1 => 0
 * version:  4.2 => 5.0


Old description:

> with gettext version  0.22.5, Somali (so) and Cantonese (yue) stopped
> working.
> If I remove language files for these two languages, the runserver works
> fine,
> if I add back these two languages, error:  ValueError: invalid token in
> plural form: EXPRESSION
>
> Also, makemessages CommandError: Type 'manage.py help makemessages' for
> usage information.
>
> Whereas, if I run makemessages -l so -l yue it works fine, but still the
> project does not start, yielding the same error.
>
> This is a weird regression.
>
> Quick fix: if needed, I can generate a quick translation for the Django
> .po files, using ChatGPT, but I don't know anyone who speaks Somali or
> Cantonese.

New description:

 with gettext version  0.22.5, Somali (so) and Cantonese (yue) stopped
 working.
 If I remove language files for these two languages, the runserver works
 fine,
 if I add back these two languages, error:  ValueError: invalid token in
 plural form: EXPRESSION

 Also, makemessages CommandError: Type 'manage.py help makemessages' for
 usage information.

 Whereas, if I run makemessages -l so -l yue it works fine, but still the
 project does not start, yielding the same error.
 What's even weirder: if I set `makemessages -x de` (that should be
 irrelevant), then makemessages runs also fine.
 Compilemessages runs also just fine.

 This is a weird regression. Tested with python 3.9, 3.11, 3.12, all the
 same, Django 3.2.19, 4.2.11, 5.0.2.


 Quick fix: if needed, I can generate a quick translation for the Django
 .po files, using ChatGPT, but I don't know anyone who speaks Somali or
 Cantonese.

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35352#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ea630f6e7-5778224f-e7cb-4dc7-b639-ff8d67efbe85-000000%40eu-central-1.amazonses.com.

Reply via email to