Interface MutableTranslationPackage
- 
- All Superinterfaces:
- java.io.Serializable,- TranslationPackage
 - All Known Implementing Classes:
- BasicTranslationPackage,- DelegateTranslationPackage,- DesignerLocalizationManager,- TranslationPackageDiff,- TranslationWorkspacePanel.FilteredTranslationPackage
 
 public interface MutableTranslationPackage extends TranslationPackage 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTerm(java.lang.String key)Ensures that the specified key is in the translation package.voidaddTranslation(java.lang.String key, java.util.Locale locale, java.lang.String value)Sets a translation for the specified key and locale.voidaddTranslations(java.lang.String key, TranslationMap translations)Sets all of the translations for a specific key.voidensureLocaleExists(java.util.Locale locale)Verifies that the locale is present, adding it if necessary.booleanremoveKey(java.lang.String key)Removes the specific key, and any translations.voidremoveLocale(java.util.Locale locale)voidremoveTranslation(java.lang.String key, java.util.Locale locale)Removes a translation for a specified key and locale.- 
Methods inherited from interface com.inductiveautomation.ignition.common.i18n.translation.TranslationPackagecreateDiff, get, getAllTranslations, getAvailableKeys, getAvailableLocales, getBaseLocale, getKeyHashRule, getStrict, getTranslationsFor, isDefined, isDefined
 
- 
 
- 
- 
- 
Method Detail- 
addTermvoid addTerm(java.lang.String key) Ensures that the specified key is in the translation package.
 - 
addTranslationvoid addTranslation(java.lang.String key, java.util.Locale locale, java.lang.String value)Sets a translation for the specified key and locale.
 - 
removeTranslationvoid removeTranslation(java.lang.String key, java.util.Locale locale)Removes a translation for a specified key and locale. Used when someone had a translation and blanks it out.
 - 
addTranslationsvoid addTranslations(java.lang.String key, TranslationMap translations)Sets all of the translations for a specific key. Translation map can be null, in which case the key will simply be registered in the index.
 - 
removeKeyboolean removeKey(java.lang.String key) Removes the specific key, and any translations.- Returns:
- true if key was present
 
 - 
ensureLocaleExistsvoid ensureLocaleExists(java.util.Locale locale) Verifies that the locale is present, adding it if necessary.
 - 
removeLocalevoid removeLocale(java.util.Locale locale) 
 
- 
 
-