Windows LogoLocalizing Your Windows Phone 8 App

You’ve built your app and released it in English only. It’s now time to localize the app and make it available in a number of different languages around the world.

There are essentially 2 areas that you need to translate in order to successfully market your app in the non-English speaking countries of the world.

Marketing Content
  • Windows Store Description
  • Keywords
  • Supporting Website
The App
  • User Interface
  • Help

The following sections describe how to prepare your app for translation. They will describe how to set up your Windows 8 project so that the entire user interface, including error messages, can be translated into multiple languages.

At the end of the exercise, you will have learned how to prepare your app so that it can be translated into any language. In addition to showing you how to localize the user interface, we’ll also explain how to translate your app name.

 

Hard-coded strings such as error messages and UI elements must be externalized from your source files in order to translate your app. The Windows Phone SDK provides support for this.
  • Go to your Windows Phone project.
  • Open the file MainPage.xaml.
  • Look for the string “MY APPLICATION”.
  • Replace “MY APPLICATION” with the following:
    • “{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}”
  • The key ApplicationTitle exists in the file AppResources.resx
  • Open the file AppResources.resx
  • Change the value of Application Title to “MY ENGLISH APP”.
  • Run the app to verify the changes
  • MY ENGLISH APP is displayed as the name of the app
  • Select Properties for the project
  • Under Application -> Supported Cultures, select the languages you are interested in for your app
  • Here we have chosen French (France).
  • This will make a copy of the default (English) file AppResources.resx and automatically name the new file AppResources.fr-FR.resx.
Now let’s do a very quick “French” translation.
  • Open the file AppResources.fr-FR.resx
  • Change the value for ApplicationTitle to “MY FRENCH APP”.
It’s time to test this and see if it works.
  • Launch the emulator.
  • Go to Settings
  • Select “language + region”
  • Change the setting to “français”
  • Launch the app in the emulator
  • Voilà, the app is running with the “French” translation