#28773: manage.py makemessages throws syntax error due to incorrectly generated
django.pot
-------------------------------------+-------------------------------------
Reporter: Hendy Irawan | Owner: nobody
Type: Bug | Status: new
Component: | Version: 1.11
Internationalization |
Severity: Normal | Resolution:
Keywords: gettext, | Triage Stage:
makemessages, Windows | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Hendy Irawan):
Replying to [comment:2 Tim Graham]:
> Can you provide a sample project that reproduces the problem and point
to the code in Django that's at fault?
Hi Tim, I've successfully reproduced this bug 100% in my system:
https://github.com/ceefour/messagesbug
The file with syntax error is
messagesbug/edu/locale/id_ID/LC_MESSAGES/django.po .
You can look at the file and you can see the syntax error at line 69 .
Using my system (Windows 10, gettext 0.19.8.1) this bug is 100%
reproducible using this project:
1. `pip install -r requirements.txt`
2. Delete the django.po file
3. Regenerate the django.po file:
python manage.py makemessages -l id_ID -v3
Generated file will contain syntax error again.
--
Ticket URL: <https://code.djangoproject.com/ticket/28773#comment:4>
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/065.8fd0e38757e255f5c9ed83125764fe1e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.