The '%s' % quote_apostrophes(s) idea worked.
The quote_apostrophes function just returns s.replace("'", r"\'") and I
didn't yet try what happens with strings with apostrophes in them, but
I Believe(TM) it should Just Work(TM) :)
The next problem: xgettext still chokes on non-ASCII input if the
--omit-headers argument is present. Apparently make_messages.py wants
headerless output from xgettext so it can join the results from
individual source files into one big .pot file by itself. And I suppose
xgettext complains since it can't specify the encoding of its output
without a header.
Continuing my journey...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django I18N" 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-I18N
-~----------~----~----~----~------~----~------~--~---