Class LanguageHelper

java.lang.Object
io.goobi.viewer.model.translations.language.LanguageHelper

public class LanguageHelper extends Object

LanguageHelper class.

  • Constructor Details

    • LanguageHelper

      public LanguageHelper(String configFilePath)

      Constructor for LanguageHelper.

      Parameters:
      configFilePath - a String object.
  • Method Details

    • getAllLanguages

      public List<Language> getAllLanguages()
    • getMajorLanguages

      public List<Language> getMajorLanguages()
    • getLanguage

      public Language getLanguage(String inIsoCode)
      Gets the language data for the given iso-code 639-1 or 639-2B
      Parameters:
      inIsoCode - a String object.
      Returns:
      a Language object.
    • createLanguage

      public Language createLanguage(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> languageConfig)
      Parameters:
      languageConfig -
      Returns:
      Created Language