#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:5 Claude Paroz]:
> If this is a Windows-related bug, I'm sorry but I can't help. It remains
to be seen if it is a "Django on Windows" error or a "gettext on Windows"
error.
I did a bit of diagnose. Edited venv\Lib\site-
packages\django\core\management\commands\makemessages.py at
write_pot_file() to print the file as it is written.
And at least in this stage, Django is writing the correct lines:
{{{
#: .\edu\templates\edu\home.html:69
#: .\edu\templates\edu\music_country.html:34
#, python-format
msgid ""
"With the <strong>huge benefits to learning to play a musical
instrument</"
}}}
So after the file is written by write_pot_file, something else is
processing and overwriting that file with broken syntax.
--
Ticket URL: <https://code.djangoproject.com/ticket/28773#comment:7>
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.a309286482ab9700c76c6bccd1f0f434%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.