Haris Bašić
Haris Bašić

Reputation: 1383

Localization with django and xgettext

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?

Upvotes: 3

Views: 1241

Answers (1)

hieu le
hieu le

Reputation: 123

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

Upvotes: 7

Related Questions