Globalization Sample


Windows Phone 7.5, Windows Phone 8
User Interface, Globalization, localization
Phone
en-US
3/5/2013

This sample shows how to use the CultureInfo class to create a globalized app. The user selects a Locale. The app then displays information such as date, time, and currency in the correct format for the selected locale. This app has been localized to German and Spanish. This sample has been updated to show localization of the app bar and the app title that appears in the phone’s app list. For more information on globalizing and localizing your app, Globalization and Localization for Windows Phone

You will need to install the Windows Phone SDK to run this sample. To get started, go to the Windows Phone Dev Center.

Tip:

The solution in the top-level directory of this sample contains a Windows Phone project that demonstrates the globalized date, time, and currency formatting and a localized app bar. This solution can be opened, built, and deployed using the Windows Phone SDK. In the subfolder, AppRes, there is a solution that contains multiple native resource-only DLL projects that are used to localize the app title in the phone’s app list. To open or build this solution, you must have the full version of Visual Studio.

Note:

This sample is packaged as a Windows Phone 7.5 project. It can be converted to a Windows Phone 8 project, by changing the target Windows Phone OS version of the project. To create a Windows Phone 8 project, you must be running the Windows Phone SDK 8.0 on Visual Studio 2012. You can download the latest version of the SDK from http://dev.windowsphone.com/downloadsdk.

To convert the sample to a Windows Phone 8 project:

  1. Double-click the .sln file to open the solution in Visual Studio.

  2. Right-click the project in the Solution Explorer and select Properties. This opens the Project Properties window.

  3. In the Application tab of the Project Properties window, select Windows Phone OS 8.0 from the Target Windows Phone OS Version dropdown. A dialog will appear asking if you want to upgrade this project to Windows Phone OS 8.0.

  4. Select Yes to upgrade the project.