Testing Localized Applications
This topic describes how to test localized or globalized Microsoft Surface applications.
Surface Shell uses localization and globalization settings that are equivalent to Windows 7, but these settings are separate from the operating system settings. For example, you could perform administrative functions on a device made for Surface (such as installing applications) by using the English language interface of Windows 7 while the Surface interface language displays German text in Launcher, the out-of-order screen, in Surface applications that were localized for German, and so on.
When a Surface application runs in Surface Shell on a device made for Surface, the Surface localization settings are used. Otherwise, the Windows 7 localization settings are used.
Surface localization settings are configured by the administrator by setting registry keys. If no keys are set, Surface obtains the localization settings from the Windows 7 settings. For information about the Surface localization settings, see Localizing Applications.
Localizing your Application
To localize your application, you perform the following sets of tasks:
Set the culture and locale settings to match the settings that Surface is using during application startup. For a code example, see Localizing Surface Applications.
Localize user interface (UI) strings in resource files. For more information, see How to: Localize an Application (WPF) or How to: Create a Localized Game.
Create localized versions of the application registration XML file. For more information, see Localizing Applications in Launcher.
If you use tags to open your application using object routing, create localized versions of the object set XML files. For more information, see Localizing the Text that Appears in the Object Routing Menu.
Testing a Localized Application on a Device Made for Surface
The easiest way to test an application in multiple languages is to change the Surface UILanguageName setting in the registry to one of the languages that your application is localized into, run Surface Shell, and then run your application. To test your application in different locales, change the Surface LocaleName setting in the registry.
|After Surface globalization settings are changed in registry, Surface Shell must be restarted.|
Testing a Localized Application on a Separate Workstation
To test an application in multiple languages on hardware other than a device made for Surface, you must change the Windows 7 language and locale settings using the Region and Language options dialog from the Control Panel.
|Changing the Windows 7 language and locale will only change the localization and globalization settings of a device made for Surface if the Surface administrator has not specifically set any Surface localization settings.|
© Microsoft Corporation. All rights reserved.