Localize the Application Launcher (Compact 2013)
10/26/2015
You can create a localized version of the XAML for Windows Embedded application launcher. In Windows Embedded Compact 2013, the sample home screen provides pre-localized UI string resources for the following languages:
- Chinese (People’s Republic of China)
- Chinese (Taiwan)
- Dutch (Netherlands)
- French (France)
- German (Germany)
- Italian (Italy)
- Japanese (Japan)
- Korean (Korea)
- Portuguese (Brazil)
- Russian (Russia)
- Spanish (Spain)
- Swedish (Sweden)
Prerequisites
Before you can complete the following procedure, you must have an OS design project with a selected screen size and theme for the home screen of a device. For more information, see Create and Prepare the OS Design and Application Launcher Project.
To configure the OS design for localized builds of the XAML-based application launcher
In Microsoft Visual Studio 2013 or Microsoft Visual Studio 2015, open your OS design project.
(Optional) Edit UI text resources by customizing the localized string files under the directory for the LCID.
- To delete the title or descriptive text on a menu item in a foreign language for a localized build, follow the steps in Delete Text in a Menu Item in Configure Items in the Menus for Launching Applications and save the .xrsl files in the directory for the LCID at %_WINCEROOT%\public\shell\oak\files\intlfile.
- To add a new menu item in a foreign language for a localized build, follow the steps in Add a New Menu Item in Configure Items in the Menus for Launching Applications and save the .xrsl file in the directory for the LCID at %_WINCEROOT%\public\shell\oak\files\intlfile.
For a video tutorial that shows how to localize XAML text, see Microsoft Showcase: Localize a Silverlight for Windows Embedded Application.
On the Project menu, click Properties.
Expand Configuration Properties, and click Locale.
Click next to Language Packs to Build, and click the ellipsis (…) button.
Select each language pack that you want to build with, and click OK.
Click next to Installed UI Language Packs, and click the ellipsis (…) button.
Select each language pack that you want to include in the run-time image, and click OK.
In Default UI Language, select the default language for the run-time image.
In Default Locale, select the default locale for the run-time image.
Click OK.
In Catalog Items View, browse to <OS_Design>\Core OS\Windows Embedded Compact\International\Language.
Expand the folder for the language for your run-time image.
Add additional catalog items for the language you selected by selecting each catalog item. For more information about the catalog items that you can include to support a particular locale, see National/Regional Language Support (NLS) Catalog Items and Sysgen Variables.
Save all of your files by clicking Save All on the File menu.
Because you changed the OS design catalog items and project configuration properties, your OS image is now out of date with the design. To recreate the OS image, on the Build menu, click Build Solution. On the Build menu, click Make Runtime Image to make the OS image.
Your OS design now supports the new language and locale (or languages and locales) that you selected.
Next Steps
You can continue to customize your home screen by using the following procedures. After you complete your customizations, you can use the procedures in Build and Run the Application Launcher to rebuild the theme DLL by using the Command Prompt window in Visual Studio before you rebuild your run-time image.