On Tue, Mar 26, 2013 at 8:04 AM, Bastian <[email protected]> wrote: > Hi, I am trying to create a .po file to start a translation. I use the > command './manage.py makemessages -l ru' to try to create the Russian > locale. The script seems to be working for a while and then crashes with: > > processing language ru > Traceback (most recent call last): > File "./manage.py", line 15, in <module> > execute_manager(settings) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/__init__.py", > line 438, in execute_manager > utility.execute() > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/__init__.py", > line 379, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/base.py", > line 191, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/base.py", > line 220, in execute > output = self.handle(*args, **options) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/base.py", > line 351, in handle > return self.handle_noargs(**options) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/commands/makemessages.py", > line 365, in handle_noargs > make_messages(locale, domain, verbosity, process_all, extensions, > symlinks, ignore_patterns, no_wrap, no_obsolete) > File > "/home/env/project/lib/python2.7/site-packages/django/core/management/commands/makemessages.py", > line 233, in make_messages > f.write(templatize(src, orig_file[2:])) > File > "/home/env/project/lib/python2.7/site-packages/django/utils/translation/__init__.py", > line 127, in templatize > return _trans.templatize(src, origin) > File > "/home/env/project/lib/python2.7/site-packages/django/utils/translation/trans_real.py", > line 450, in templatize > content = u''.join(comment) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: > ordinal not in range(128)
Upgrade your copy of Django 1.3.x to a supported version (1.3 isn't for this kind of fixes) or apply this fix manually: https://github.com/django/django/commit/0defa7dc9dc97a11baea3b91158fbc7c57e5c3a6 Django versions 1.4 or newer already include it. As a general rule, if you find a problem with an ancient version it's better to test with a newer version because chanes are it has been fixed. -- Ramiro Morales @ramiromorales -- You received this message because you are subscribed to the Google Groups "Django users" 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]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

