public interface MutableTranslationPackage extends TranslationPackage
Modifier and Type | Method and Description |
---|---|
void |
addTerm(java.lang.String key)
Ensures that the specified key is in the translation package.
|
void |
addTranslation(java.lang.String key,
java.util.Locale locale,
java.lang.String value)
Sets a translation for the specified key and locale.
|
void |
addTranslations(java.lang.String key,
TranslationMap translations)
Sets all of the translations for a specific key.
|
void |
ensureLocaleExists(java.util.Locale locale)
Verifies that the locale is present, adding it if necessary.
|
boolean |
removeKey(java.lang.String key)
Removes the specific key, and any translations.
|
void |
removeLocale(java.util.Locale locale) |
void |
removeTranslation(java.lang.String key,
java.util.Locale locale)
Removes a translation for a specified key and locale.
|
createDiff, get, getAllTranslations, getAvailableKeys, getAvailableLocales, getBaseLocale, getKeyHashRule, getStrict, getTranslationsFor, isDefined, isDefined
void addTerm(java.lang.String key)
void addTranslation(java.lang.String key, java.util.Locale locale, java.lang.String value)
key
- locale
- value
- void removeTranslation(java.lang.String key, java.util.Locale locale)
key
- locale
- void addTranslations(java.lang.String key, TranslationMap translations)
key
- translations
- boolean removeKey(java.lang.String key)
key
- void ensureLocaleExists(java.util.Locale locale)
locale
- void removeLocale(java.util.Locale locale)