Package io.goobi.viewer.messages
Class MessagesTranslation
java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.messages.MessagesTranslation
Represents a single translated message entry with its locale and value.
- Author:
- Florian Alpers
-
Field Summary
Fields inherited from class io.goobi.viewer.model.translations.Translation
id, language, tag, translationValue -
Constructor Summary
ConstructorsConstructorDescriptionMessagesTranslation(String key, String value, String language) Creates a new MessagesTranslation instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Translation> getTranslations(String key) getTranslations.Methods inherited from class io.goobi.viewer.model.translations.Translation
equals, getId, getLanguage, getTag, getTranslation, getTranslation, getTranslationValue, hashCode, isEmpty, setId, setLanguage, setTag, setTranslation, setTranslationValue, toString
-
Constructor Details
-
MessagesTranslation
Creates a new MessagesTranslation instance.- Parameters:
key- message key identifying the translation entryvalue- translated text for the given languagelanguage- ISO language code for this translation
-
-
Method Details
-
getTranslations
getTranslations.- Parameters:
key- message key to look up across all configured locales- Returns:
- the collection of translations for the given message key across all configured locales
-