[Django]-Django-rosetta translated phrases not appearing on pages

5👍

Were the files actually written to by django-rosetta? If Rosetta can’t write the content back to the .po files (e.g. because they are not writable by the web server process) it’ll just keep them in memory (you can download your translations, and replace the files.)

Also, you can run django-admin.py compilemessages to explicitly compile the updated .po files into .mo files, which are read by Django, before restarting the webserver.

Also, is _ aliased to ugettext or ugettext_lazy? It should probably be the latter.

👤Marco

0👍

If you are using development server you would have to restart it as it would not detect updated translations itself.

If you are on production server, you probably want to tell rosetta to auto reload (see: Rosetta Configuration).

Leave a comment