PyCharm 2020.2 Help

Navigate between text and message file

Use the localization.icons.com.jetbrains.localization.i18n.svg gutter icons to navigate from a template to a localization file. To jump from localization file to the corresponding template, useCtrl+Click.

Navigate from a template to locale

  1. Click localization.icons.com.jetbrains.localization.i18n.svg icon in the gutter next to the desired tag.

  2. If a tag is referenced from several locales, select one from the popup:
    py i18n choose locale png

    The selected django.po file opens in the editor, with the caret resting at the msgid that corresponds to the tag in question.

Navigate from a locale to template

  1. In the desired django.po file, place the caret at the comment above the locale in question:

  2. On the main menu, choose Navigate | Declaration Ctrl+B, or use any other method, described in Navigating section .

    go to declaration

    The corresponding template files opens in the editor.

  3. Alternatively, you can press the Ctrl key and hover your mouse pointer over the comment above the locale in question. The comment turns into a hyperlink. Click it to navigate to the template file.

View references to a localization tag

  1. Hover your mouse pointer over the gutter icon next to the desired tag.

  2. Inspect the balloon with the list of locale files that reference the selected tag:

    view references to a localized tag

Last modified: Wed Aug 19 14:24:29 UTC 2020