public static I_CmsMacroResolver newWorkplaceLocaleResolver ( final CmsObject cms ) { // Resolve macros in the property configuration CmsMacroResolver resolver = new CmsMacroResolver ( ) ; resolver . setCmsObject ( cms ) ; CmsUserSettings userSettings = new CmsUserSettings ( cms . getRequestContext ( ) . getCurrentUser ( ) ) ; CmsMultiMessages multimessages = new CmsMultiMessages ( userSettings . getLocale ( ) ) ; multimessages . addMessages ( OpenCms . getWorkplaceManager ( ) . getMessages ( userSettings . getLocale ( ) ) ) ; resolver . setMessages ( multimessages ) ; resolver . setKeepEmptyMacros ( true ) ; return resolver ; }
Returns a new macro resolver that loads message keys from the workplace bundle in the user setting s language .