PyCharm 3.1.0 Web Help

PyCharm stores locales in the language-related subdirectories of the locale directory. For creating locales, run the makemessages task of the manage.py utility.

To create a message file
  1. On the main menu, choose Tools | Run manage.py task, or press org.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupActionorg.jetbrains.plugins.ruby.rake.actions.RakeTasksPopupAction.

    py_createLocale

  2. In the Enter manage.py task name dialog box, select makemessages, and press Shift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift EnterShift EnterShift Enter.
  3. In the manage.py makemessages dialog box that opens, type -l <locale name >:

    py_createLocale1

    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:

    py_localeFolders

    If there are no such strings, only an empty directory structure is created.

See Also

Language and Framework-Specific Guidelines:

Web Resources: