Localizing the User Interface

You can set up custom localization strings for the UI text.

To change the language of the text strings in the Mobile SDK's user interface, add the following key/value pairs to the resource file res/values/strings.xml. You can then customize each value as you like:
<string name="oo_live">Live</string>
<string name="oo_subtitles_title">Subtitles</string>
<string name="oo_subtitles_none">None</string>
<string name="oo_subtitles_cc">Closed Captions</string>
<string name="oo_subtitles_en">English</string>
<string name="oo_subtitles_es">Spanish</string>
For each desired language, specify the two-character ISO 639-1 language code on the oo_subtitles_ key. For instance, as shown above for Spanish: oo_subtitles_es.

To assist in your debugging, the Mobile SDK looks up values from the resource file by the classes getContext().getResources().getIdentifier(name, "string", getContext().getPackageName().

Enabling Localization Based on Device Language

In your Activity, add the following lines of code before initializing the OoyalaPlayer. You only need to do this once per application:
String localeString = getResources().getConfiguration().locale.toString();

This gets tghe locale from the Activity's configuration and uses it to perform localization within the SDK, which currently supports English, Japanese, and Spanish.