On Mon, Apr 2, 2012 at 22:35, Thomas Petazzoni
<address@hidden> wrote:
@@ -43,3 +43,10 @@ WARNING: There is a known bug in Django makemessages 1.2.x (and maybe
signs in .po files must be replaced by single % signs. This
is typically needed for the Wikipedia URL pointing to the
Hacker culture.
+
+ In order to workaround this bug, we recommend running:
+
+ find locale/ -name 'django.po' | xargs sed -i 's/%%/%/g'
+
+ after the execution of the makemessages command.
I'm wondering if we might not be able to use a convenience wrapper around django-admin.py? It's a pretty short script as it is.
#!/usr/bin/env python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
if management.get_version == '1.2':
import sys
if 'makemessages' in sys.argv:
...... walk tree using find / sed, or the python equivalent