#7084: make-messages fails on multiline blocktrans tags on Windows
-------------------------------------------+--------------------------------
Reporter: MihaiD | Owner: nobody
Status: new | Milestone: 1.0
Component: Internationalization | Version: SVN
Resolution: | Keywords: make-messages
xgettext new line \r
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 1 |
-------------------------------------------+--------------------------------
Comment (by ramiro):
Replying to [comment:7 mtredinnick]:
> Ramiro: now I have another question... Aren't those write changes going
to affect things as the files move between Windows and linux, say? Since
you're now writing out with native line-endings, rather than the same line
ending in every case (as I understand the change), won't this mean that a
PO file generated on Linux and then updated on Windows will come back with
a patch that changes every line ending? That would be bad.
That is exactly what was happening, thanks for noting it. I've modified
things even further so makemessages command always creates the .po
catalogs with Unix file-endings. See attached patch.
I´ve tested it under Linux and Windows both creating django and djangojs
`.po` files from scratch and updating existing ones.
While loking at this I found the script doesn´t cleanup after istelf when
it finds an error executing the gettext tools. I've opened a ticket for
that (#8536).
One minor (not critical at all) note: In a `.po` file created or updated
under Windows, location comments located above every `msgid` will have the
form
{{{
#: .\conf\global_settings.py:44
msgid "Arabic"
...
}}}
instead of
{{{
#: conf/global_settings.py:44
msgid "Arabic"
...
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7084#comment:9>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---