RubyMine 7.0.1 Web Help

Properties files are used to store localization strings. RubyMine enables you to create new properties files, and detects the existing ones.

To create properties files
  1. Right-click locales directory.
  2. On the context menu of the target directory, choose New | File.
  3. In the New File dialog box, type the file name with the corresponding extension, and click OK. Note that you can also create nested directories under locales, and add new properties files there.
  4. In the new .yml or .rb file, create the required content.

While editing properties files, use the following techniques:

  • Syntax highlighting: Keywords, delimiters, values and comments are highlighted. You can configure the color scheme in the Colors and Fonts page of the Settings dialog.
  • Code inspection helps you make sure the locale record matches file name:

    ruby_i18nNoLocaleRecord.png

  • Expand word: Start typing, and press Alt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashAlt+SlashCtrl+Shift+KAlt+SlashAlt+SlashAlt SlashAlt SlashControl PeriodAlt Slash to go through the existing strings.

See Also

Concepts:

Reference:

Web Resources: