Class LanguageManager


  • public class LanguageManager
    extends Object
    A manager for all supported languages. It's internals are initialized from the extension point 'Language' of the core plugin.
    Since:
    3.0.3
    Author:
    Alessandro Gasparini - LogicalDOC
    • Method Detail

      • init

        public void init()
      • getLanguage

        public Language getLanguage​(Locale locale)
        Retrieves the Language for the given language Null is returned if the corresponding Language could not be found
        Parameters:
        locale - The language to retrieve the language for
        Returns:
        A Language object
      • addLanguage

        public void addLanguage​(Locale locale,
                                Language lang)
      • getLanguagesAsString

        public List<String> getLanguagesAsString​(String tenantName)