Class ClientLocalizationManager
java.lang.Object
com.inductiveautomation.ignition.client.model.ClientLocalizationManager
- All Implemented Interfaces:
TranslationPackage
,Serializable
- Direct Known Subclasses:
ClientLocalizationManagerImpl
,DesignerLocalizationManager
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static ClientLocalizationManager
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addLocaleListener
(LocaleListener listener) void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) protected void
fireProperty
(String name) static <T extends ClientLocalizationManager>
Tget()
abstract String
abstract Collection<Locale>
abstract Locale
abstract Locale
abstract String
abstract String
abstract String
abstract String
getStringForBundleKey
(String bundlekey) abstract TranslationMap
getTranslationsFor
(String key) abstract boolean
abstract void
removeLocaleListener
(LocaleListener listener) void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) abstract void
Resets the current locale to the base locale.protected static void
abstract void
setCurrentLocale
(Locale locale) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.common.i18n.translation.TranslationPackage
createDiff, getAllTranslations, getAvailableKeys, getBaseLocale, getKeyHashRule, isDefined, isDefined
-
Field Details
-
EVENT_AVAILABLE_LOCALES
- See Also:
-
EVENT_TRANSLATIONS
- See Also:
-
_instance
-
-
Constructor Details
-
ClientLocalizationManager
protected ClientLocalizationManager()
-
-
Method Details
-
get
-
set
-
addPropertyChangeListener
-
removePropertyChangeListener
-
fireProperty
-
isTranslationEnabled
public abstract boolean isTranslationEnabled() -
getAvailableLocales
- Specified by:
getAvailableLocales
in interfaceTranslationPackage
- Returns:
- the locales for which translations are available. This will include the base locale.
-
get
- Specified by:
get
in interfaceTranslationPackage
key
- the key to find a match for, or return value if no value found- Returns:
- the translation of the key for the requested locale, or the key, if the translation is not available.
-
getString
-
getStrict
-
getStrict
- Specified by:
getStrict
in interfaceTranslationPackage
- Parameters:
locale
- the locale to find a value forkey
- the key to find a match for- Returns:
- the translation, or null if the translation doesn't exist.
-
getStringForBundleKey
-
getTranslationsFor
- Specified by:
getTranslationsFor
in interfaceTranslationPackage
- Returns:
- a map of all of the translations available for a given key.
-
getCurrentLocale
-
setCurrentLocale
-
getPreviewLocale
-
addLocaleListener
-
removeLocaleListener
-
resetLocale
public abstract void resetLocale()Resets the current locale to the base locale. *
-