In this article we are going to see how to test an application which is localized, to proceed further get some idea on the Localization in our previous articles which explains how to start localizing the application and also on how to globalize the application. We can use the Windows Phone Emulator which has different configurations to be used to test the localized application. But to start with we need to have a localized application in place, let us take the application which we used in our earlier article which has a little bit localization of changing the application bar title and the application title. We also need to understand a fair deal on the different language which we are going to use as we need to have the value configured in the resource files. [more]
Let us see the steps on how to achieve this task in our Windows Phone application development. Open Visual Studio 2012 IDE and open the project which we used in our previous article as shown in the screen below.
We need to first understand that display language and the region are to be mapped with a culture code, which basically will vary and the strings that are displayed will differ. The following table gives a high level on which display language string it applies to and which culture code is used.
Now let us start and see how we can test the application which is localized. To start with open the Visual Studio which has already loaded with the application which we are going to test and Click on Debug –> Start Debugging option as shown in the screen below.
We can see the application loaded to the Windows Phone Emulator in the debug mode, next step is navigate to the application listing and select the appropriate application to load as shown in the screen below.
Click and hold the application to pin it to the start screen, then navigate to the settings page from the application list. In the settings page select the language+region option as shown in the screen below.
To test for different languages click on the language of your choice and there will be an option that to accept the changes. We can change any language and it will get affected after restarting the application as shown in the screen below.
Click on restart phone will restart the application and the device (in our case the emulator) and we can see the changes gets affected based on the language and format we selected.