#29712: Add warning in makemessages command if the localecode with `l` flag is
not
correct
------------------------------------------------+------------------------
Reporter: Sanyam Khurana | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: 2.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
The translations only work when the locale involving region code is
generated as this:
`zh_CN` for Simplified Chinese
Notice here that the region code should be in capital letters for the
`django.po` file in the directory to correctly work.
If we do `makemessages` as
`python manage.py makemessages -l zh_cn`
OR
`python manage.py makemessages -l zh-cn`
It wouldn't work and no error is produced even after running
compilemessages, which can leave people baffled for a while.
I would suggest adding a warning/error messages if the locale is used
incorrectly. That would certainly be a great help.
I can make a patch for this as well.
--
Ticket URL: <https://code.djangoproject.com/ticket/29712>
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/057.81474f0a46ace8d045fde1391c5360a8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.