Class InternationalizationUtils

java.lang.Object
com.vdoc.sdk.commons.utils.InternationalizationUtils

public class InternationalizationUtils extends Object
Internationalization utility class
  • Constructor Details

    • InternationalizationUtils

      public InternationalizationUtils()
  • Method Details

    • setGlobalLanguage

      public static void setGlobalLanguage(IExecutionContext ec, String language)
      Modify language
      Parameters:
      ec - the context
      language - the language
    • getLocaleList

      public static Collection<IOptionList.IOption> getLocaleList(IWorkflowModule workflowModule)
      Gets available locale list
      Parameters:
      workflowModule - the module
      Returns:
      the available locale list
    • getTranslationPageTitleWithPrefix

      public static String getTranslationPageTitleWithPrefix(IModule module, String prefix, String uri)
      Get a translated title for a page uri
      Parameters:
      module - the module
      prefix - the prefix
      uri - the uri
      Returns:
      the translated title
    • getTranslationPageTitle

      public static String getTranslationPageTitle(IModule module, String uri)
      get a translated title for a page uri
      Parameters:
      module - the module
      uri - the uri
      Returns:
      the translated title
    • translateFolderItemBeanTitle

      public static void translateFolderItemBeanTitle(List<com.axemble.easysite.components.sys.navigation.FolderItemBean> folderItemList)
      translate a List of FolderItemBean label with a call to getTranslationPageTitle
      Parameters:
      folderItemList - the list to translate