Class MessagesTranslation

java.lang.Object
io.goobi.viewer.model.translations.Translation
io.goobi.viewer.messages.MessagesTranslation

public class MessagesTranslation extends Translation
Represents a single translated message entry with its locale and value.
Author:
Florian Alpers
  • Constructor Details

    • MessagesTranslation

      public MessagesTranslation(String key, String value, String language)
      Creates a new MessagesTranslation instance.
      Parameters:
      key - message key identifying the translation entry
      value - translated text for the given language
      language - ISO language code for this translation
  • Method Details

    • getTranslations

      public static Collection<Translation> getTranslations(String key)
      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