public final class LocalizedStrings
extends java.lang.Object
Constructor and Description |
---|
LocalizedStrings() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getString(StringKey key)
Returns the localized message to display for the given key.
|
static java.lang.String |
getString(StringKey key,
java.lang.String languageOrLocale)
Returns the localized message to display for the given key, and given localization.
|
static void |
setLanguage(android.content.Intent intent)
Sets the language for an activity.
|
public static java.lang.String getString(StringKey key)
key
- - which UI stringpublic static java.lang.String getString(StringKey key, java.lang.String languageOrLocale)
key
- The UI string keylanguageOrLocale
- the target translation localepublic static void setLanguage(android.content.Intent intent)
intent
- Copyright © 2012 PayPal, Inc. All Rights Reserved.