Package com.vdoc.sdk.commons.utils
Class InternationalizationUtils
java.lang.Object
com.vdoc.sdk.commons.utils.InternationalizationUtils
Internationalization utility class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<IOptionList.IOption> getLocaleList(IWorkflowModule workflowModule) Gets available locale liststatic StringgetTranslationPageTitle(IModule module, String uri) get a translated title for a page uristatic StringgetTranslationPageTitleWithPrefix(IModule module, String prefix, String uri) Get a translated title for a page uristatic voidsetGlobalLanguage(IExecutionContext ec, String language) Modify languagestatic voidtranslateFolderItemBeanTitle(List<com.axemble.easysite.components.sys.navigation.FolderItemBean> folderItemList) translate aListofFolderItemBeanlabel with a call to getTranslationPageTitle
-
Constructor Details
-
InternationalizationUtils
public InternationalizationUtils()
-
-
Method Details
-
setGlobalLanguage
Modify language- Parameters:
ec- the contextlanguage- the language
-
getLocaleList
Gets available locale list- Parameters:
workflowModule- the module- Returns:
- the available locale list
-
getTranslationPageTitleWithPrefix
Get a translated title for a page uri- Parameters:
module- the moduleprefix- the prefixuri- the uri- Returns:
- the translated title
-
getTranslationPageTitle
get a translated title for a page uri- Parameters:
module- the moduleuri- the uri- Returns:
- the translated title
-
translateFolderItemBeanTitle
public static void translateFolderItemBeanTitle(List<com.axemble.easysite.components.sys.navigation.FolderItemBean> folderItemList) translate aListofFolderItemBeanlabel with a call to getTranslationPageTitle- Parameters:
folderItemList- the list to translate
-