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 Details

    • TranslatedValue

      public TranslatedValue(String key, Map<String,String> translations)
      Construct a TranslatedValue
      Parameters:
      key - The message key
      translations - Translations of massage
  • Method Details

    • getKey

      public String 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

      public void addTranlation(String language, String value)
      Add translation
      Parameters:
      language - The language a message
      value - The message