IntelliJ IDEA 2016.3 Help

Navigating Between Text and Message File

This feature is supported in the Ultimate edition only.

Use the /help/img/idea/2016.3/py_i18n_icon.png gutter icons to navigate from a template to a localization file. To jump from localization file to the corresponding template, use Ctrl+Click.

In this section:

Navigating from template to locale

To navigate from a template to locale

  1. Click /help/img/idea/2016.3/py_i18n_icon.png icon in the gutter next to the desired tag.
  2. If a tag is referenced from several locales, select one from the pop-up window:
    /help/img/idea/2016.3/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.

Navigating from locale to template

To navigate from a locale to template

  1. In the desired django.po file, place the caret at the comment above the locale in question:
    /help/img/idea/2016.3/py_i18n_jump_to_template.png
  2. On the main menu, choose Navigate | Declaration, or use any other method, described in Navigating to Declaration or Type Declaration of a Symbol. The corresponding template files opens in the editor.

Viewing references

To view references to a localization tag

  • Hover your mouse pointer over the gutter icon next to the desired tag. A balloon that pops up, shows a list of locale files that reference the selected tag:
    /help/img/idea/2016.3/i18n_referenced.png

To view which template a locale references

  • Keeping Ctrl key pressed, hover your mouse pointer over the comment above the locale in question. The comment turns into a hyperlink, and the balloon shows reference:
    /help/img/idea/2016.3/py_i18n_view_reference.png

See Also

Last modified: 21 March 2017