Localizing Property List Values

You may want to provide localized versions of strings that are provided by the plist file for your app.

This could be

  • The App Title
  • Permission requests etc

Create a language folder

The first step is to create a language folder for the language, or languages, you want to provide localization for. The folder name has the form <language code>.lproj. The language code is the the two-letter ISO 639-1 standard (preferred) or the three-letter ISO 639-2 standard code for the language. You can find a list of these codes here.

As example we will create a German folder so we name it de.lproj.

Create an InfoPlist.strings file

The next step is to create an InfoPlist.string file in the de.lproj folder.

Add any plist strings you want to localize in the form

<plist key>=<localized value>;

For example to localize the app name you would use

CFBundleDisplayName="Übersetzter Name";

Include the de.lproj folder

To include the localized strings add the de.lproj folder to the Copy Files pane of the Standalone Application Settings.

Build and test the standalone

If you are testing on a device with the language set to German the localized app name will show on the app icon and when the app name is shown, for example in a permission request.



OMG, that even the final screenshot is wrong.... LOL

Elanor Buchanan

Hi Syky, thanks for your comment.

I have updated the lesson with a different example, localizing the app name instead of a permission request message.


Add your comment

E-Mail me when someone replies to this comment