Create message files
Available only in PyCharm Professional: download to try or compare editions
PyCharm stores locales in the language-related subdirectories of the locale directory. For creating locales, run the makemessages
task of the manage.py utility.
In the main menu, go to Tools | Run manage.py task (CtrlAlt0R) .
In the manage.py task window, enter
makemessages --locale <locale name >
and press Enter.Repeat this step for each locale you want to create.
If there are strings marked for localization, PyCharm will produce a directory and django.po file for each locale:
If there are no such strings, only an empty directory structure is created.
Thanks for your feedback!
Was this page helpful?