Class TranslatedValue
java.lang.Object
org.ametys.plugins.contenttypeseditor.edition.TranslatedValue
Object representation of a message with all traduction in differents
languages , and its key
-
Constructor Summary
ConstructorDescriptionTranslatedValue
(String key, Map<String, String> translations) Construct a TranslatedValue -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTranlation
(String language, String value) Add translationgetKey()
Get the key of a messageGet translations of message according to the language
-
Constructor Details
-
TranslatedValue
Construct a TranslatedValue- Parameters:
key
- The message keytranslations
- Translations of massage
-
-
Method Details
-
getKey
Get the key of a message- Returns:
- The key of a message
-
getTranslations
Get translations of message according to the language- Returns:
- Get translations of message
-
addTranlation
Add translation- Parameters:
language
- The language a messagevalue
- The message
-