Localization with django and xgettext

1.2k views Asked by At

I am working on translation of my site, but when I try to run command:

manage.py makemessages --locale=bs

I constantly get error like:

CommandError: errors happened while running xgettext on rjsmin.py
xgettext: Non-ASCII string at .\compressor\filters\jsmin\rjsmin.py:59.
          Please specify the source encoding through --from-code.

What shell I do?

1

There are 1 answers

0
hieu le On

I have the same problem. At the top of the rjsmin.py, change the "- * - coding: ascii -*-" to "- * - coding: utf-8 - * -"