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.
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).
- [Django]-Django 2.2.5 URL regex in url path
- [Django]-How to pass variables to login page in django 1?
- [Django]-Django assert that response contains one of a list of possible strings
Source:stackexchange.com