#7084: make-messages fails on multiline blocktrans tags on Windows
-------------------------------------------+--------------------------------
Reporter: MihaiD | Owner: nobody
Status: new | Milestone: 1.0 beta
Component: Internationalization | Version: SVN
Resolution: | Keywords: make-messages
xgettext new line \r
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by ramiro):
Had forgot about this one. I've attached a patch updating the approach I
propose to trunk post-r7844.
You might also want to apply this minimal additional modification to the
same file (didn't want to include this in the patch because it's strictly
unrelated):
{{{
#!diff
diff -r 1b29e4bb845e django/core/management/commands/makemessages.py
--- a/django/core/management/commands/makemessages.py Tue Jul 22
15:40:25 2008 -0300
+++ b/django/core/management/commands/makemessages.py Tue Jul 22
15:48:06 2008 -0300
@@ -68,8 +68,8 @@
sys.stdout.write('processing file %s in %s\n' %
(file, dirpath))
src = open(os.path.join(dirpath, file), "rU").read()
src = pythonize_re.sub('\n#', src)
- open(os.path.join(dirpath, '%s.py' % file),
"wt").write(src)
thefile = '%s.py' % file
+ open(os.path.join(dirpath, thefile), "wt").write(src)
cmd = 'xgettext -d %s -L Perl --keyword=gettext_noop
--keyword=gettext_lazy --keyword=ngettext_lazy:1,2 --from-code UTF-8 -o -
"%s"' % (domain, os.path.join(dirpath, thefile))
(stdin, stdout, stderr) = os.popen3(cmd, 't')
msgs = stdout.read()
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7084#comment:4>
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
-~----------~----~----~----~------~----~------~--~---