Localizing Android projects

Translate the strings.xml resources of an Android app, including plurals and string arrays.

1. Keep your text in resources

Android apps keep their text in res/values/strings.xml. Use <plurals> for counts and mark strings that must not change with translatable="false". See Android’s localization guide.

2. Create an Auto Localize project

  1. Click New Project and drop your Android Studio project folder.
  2. Set Written in to the language of values/strings.xml. Folders with a language qualifier (values-de) are recognized; other qualifiers such as values-night are ignored.
  3. Pick the languages and click Create Project.

3. Localize

Click Localize. New languages are written to values-de/strings.xml, values-pt-rBR/strings.xml, values-zh-rCN/strings.xml and so on, with the same order and indentation as the original file. Plurals get every quantity the language uses; escapes such as \' and \n and markup like <b> are kept.

Localizing

4. Build

Rebuild the app in Android Studio. Use Translations Editor there, or the details panel in Auto Localize, to check individual strings.

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