Run and Test the Localized Application

Once you've added the localized string and image resources, you are ready to run the application and test its handling of them. To change the locale on a device or in the emulator, use the Settings application (Home > Menu > Settings > Locale & text > Select locale). Depending on how a device was configured, it might not offer any alternate locales via the Settings application, or might offer only a few. The emulator, on the other hand, will offer a selection of all the locales that are available in the Android system image.

To set the emulator to a locale that is not available in the system image, use the Custom Locale application, which is available in the Application tab:

To switch to a new locale, long-press a locale name:

To switch to a new locale, long-press a locale name:

For a list of supported locales, see the Android Version Notes.

Run the application for each of the expected locales, plus one unexpected locale. Here are some of the results you should see:

Locale

Opening screen of application

German / Germany

Specifically supported by the Hello, L10N application.

Hallo, einem

Der du viel lieblicher und sanfter bist?

French / Canada

Specifically supported by the Hello, L10N application.

Bonjour,

Tu es plus tendre et bien plus tempéré.

German / Switzerland

Only the language is specifically supported by the Hello, L10N application.

Hallo, einem

Der du lieblicher sanfter

Specifically supported by the Hello, L10N application.

Hello, LION

1 etffesfciit^tst,7.tsKwc 1 ^^^^^^^^

Romansh / Switzerland (custom locale rm_CH)

Not specifically supported by the Hello, L10N application, so the application uses the default resources.

Hello,

Thou art more lovely and more temperate.

^^M ^JL^ ^^B ^ir^

0 0

Post a comment