Package com.logicaldoc.core.i18n
Class LanguageManager
java.lang.Object
com.logicaldoc.core.i18n.LanguageManager
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 Summary
Modifier and TypeMethodDescriptionvoidaddLanguage(Locale locale, Language lang) getActiveLanguages(String tenantName) static LanguageManagergetLanguage(Locale locale) Retrieves the Language for the given language Null is returned if the corresponding Language could not be foundgetLanguagesAsString(String tenantName) voidinit()
-
Method Details
-
init
public void init() -
getInstance
-
getLanguages
-
getActiveLanguages
-
getLanguage
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
-
getLanguagesAsString
-