public class Localization
extends java.lang.Object
| Constructor and Description |
|---|
Localization() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<Language,java.lang.String> |
getLocalizedMap(java.lang.String key)
Returns a map which can be used as a parameter for setAllNames() of any localized item.
|
static java.lang.String |
getLocalizedString(java.lang.String key)
Return the localization of an given key and the current session language.
|
static java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.Object[] arguments)
Return the localization of an given key and the current session language.
|
public static java.lang.String getLocalizedString(java.lang.String key,
java.lang.Object[] arguments)
MessageFormat using given arguments.key - the keyarguments - list of values for the text arguments (see MessageFormat.format(String, Object[]))public static java.lang.String getLocalizedString(java.lang.String key)
key - the keypublic static java.util.Map<Language,java.lang.String> getLocalizedMap(java.lang.String key)
e.g. product.setAllNames( Localization.getLocalizedMap("myitemkey") );
or locItem.setLocalizedProperty( sess_ctx_with_language_null, key, Localization.getLocalizedMap("myitemkey") );
key - the which can be found in the localization filesCopyright © 2018 SAP SE. All Rights Reserved.