I have my translation strings only in templates (stored in the project_dir/Templates), I tried running the $ django-admin.py createmessages -l ru
both in the project root directory and in the app directories that use templates with trans. strings. It created folders locale/ru/LC_MESSAGES but the folders were empty. I tried to add the django.po files manually (with the syntax mentioned in the l10n docs). And ran the createmessages -a and compilemessages commands. It created the .mo files, but the translations didn't appear in the browser.
- As I created the .po files manually I had no lines starting with #. What should I write there?
- My template files are in different folder than the .py files for apps. Should I put some extra links to them?
s and msgstr
s where msgid corresponds to a {% trans %} in a template. – Hurtful