Localizing Java projects

Translate the .properties resource bundles of a Java or Kotlin app.

1. Use a resource bundle

Keep your text in a base file such as Messages.properties and load it with ResourceBundle.getBundle("Messages", locale). IntelliJ IDEA’s resource bundle editor shows all languages together.

2. Create an Auto Localize project

  1. Click New Project and drop the project folder (or the resources folder).
  2. Set Written in to the language of the base file; files such as Messages_de.properties are recognized as translations.
  3. Choose the languages and click Create Project.

3. Localize

Click Localize. New files are named Messages_de.properties, Messages_pt_BR.properties …, in the base file’s order. MessageFormat placeholders like {0} are protected. Files that use \uXXXX escapes keep using them; UTF-8 files stay UTF-8. XML property files (<properties>) are supported too.

More from MOZKAN

7 more apps, same care

Private, native apps for iPhone, iPad and Mac from the developer of Auto Localize.

DiskloftMac

See your disk as a floor plan and clear caches, Xcode leftovers and duplicate files. Nothing leaves your Mac.

See everything at mozkan.com