Class TranslatedValue
- java.lang.Object
-
- org.ametys.plugins.contenttypeseditor.edition.TranslatedValue
-
public class TranslatedValue extends Object
Object representation of a message with all traduction in differents languages , and its key
-
-
Constructor Summary
Constructors Constructor Description TranslatedValue(String key, Map<String,String> translations)
Construct a TranslatedValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTranlation(String language, String value)
Add translationString
getKey()
Get the key of a messageMap<String,String>
getTranslations()
Get translations of message according to the language
-
-
-
Constructor Detail
-
TranslatedValue
public TranslatedValue(String key, Map<String,String> translations)
Construct a TranslatedValue- Parameters:
key
- The message keytranslations
- Translations of massage
-
-
Method Detail
-
getTranslations
public Map<String,String> getTranslations()
Get translations of message according to the language- Returns:
- Get translations of message
-
addTranlation
public void addTranlation(String language, String value)
Add translation- Parameters:
language
- The language a messagevalue
- The message
-
-