Django compilemessages does not create .mo files

I am trying to make my django application available in French (previously it was available only in English). I tagged a few lines in my translation application to try. I went to the root directory of my application (where the manage.py file is located) and ran django-admin.py makemessages -l fr_CA. This created the file django.poinside myapp/locale/fr_CA/LC_MESSAGES. I edited this file, providing translations. Returning to the root directory of the application, I started django-admin.py compilemessages -l fr_CA. The team returned quickly, without output to stdout. There is no file .mo.

Why doesn't this create a .mo file?

I tried to set my LOCALE_PATHS to my settings file, but it didn’t affect (and besides, I didn’t need to do this to create .po files, since they are in the default location path/to/myapp/locale) ..

+4
source share
1 answer

Ok To guess. For some reason, running a command compilemessagesin the same place where I ran the command makemessagesdoes not work, although this tells docs to do it!

I needed to go one directory deeper - one that contains settings.py not one that contains manage.py. Weird

- , , , ... , ... .

+6

All Articles