Class WorkflowLanguageManager
java.lang.Object
org.ametys.plugins.workflow.component.WorkflowLanguageManager
- All Implemented Interfaces:
Component
,Contextualizable
- Direct Known Subclasses:
WorkflowLanguageManager
Component for managing languages
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) Get currently used languageGet a set of the authorized languages for current application Must be overriden by CMS to access it
-
Field Details
-
ROLE
The Workflow Language Manager ROLE -
_context
The context
-
-
Constructor Details
-
WorkflowLanguageManager
public WorkflowLanguageManager()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getCurrentLanguage
Get currently used language- Returns:
- the language code
-
getLanguages
Get a set of the authorized languages for current application Must be overriden by CMS to access it- Returns:
- a set of the languages codes
-