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 ClientLocalizationManagerstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddLocaleListener(LocaleListener listener) voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) protected voidfireProperty(String name) static <T extends ClientLocalizationManager>
Tget()abstract Stringabstract Collection<Locale>abstract Localeabstract Localeabstract Stringabstract Stringabstract Stringabstract StringgetStringForBundleKey(String bundlekey) abstract TranslationMapgetTranslationsFor(String key) abstract booleanabstract voidremoveLocaleListener(LocaleListener listener) voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) abstract voidResets the current locale to the base locale.protected static voidabstract voidsetCurrentLocale(Locale locale) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getAvailableLocalesin interfaceTranslationPackage- Returns:
- the locales for which translations are available. This will include the base locale.
-
get
- Specified by:
getin interfaceTranslationPackagekey- 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:
getStrictin 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:
getTranslationsForin 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. *
-