|
Method Summary | ||
void |
destroy() | |
getBaseBundleName(String resourceName) | ||
getContentLocale() Get the content local for the current thread. This will revert to getLocale() if no value has been defined. |
||
getLocale() Get the general local for the current thread, will revert to the default locale if none specified for this thread. |
||
getNearestLocale(Locale templateLocale, Set<Locale> options) Searches for the nearest locale from the available options. |
||
getRegisteredBundles() Get set of registered message resource bundles |
||
getRepoResourceBundle(StoreRef storeRef, String path, Locale locale) Get message resource bundle from the repository note: also used by Web Client (ResourceBundleWrapper) |
||
void |
init() | |
void |
onDisableTenant() | |
void |
onEnableTenant() | |
parseLocale(String localeStr) Factory method to create a Locale from a lang_country_variant string. |
||
void |
register(org.alfresco.repo.i18n.MessageDeployer messageDeployer) Register message deployer with message service |
|
void |
registerResourceBundle(String bundleBasePath) Register a resource bundle. |
|
void |
setContentLocale(Locale locale) Set the content locale for the current thread. |
|
void |
setLocale(Locale locale) Set the locale for the current thread. |
|
void |
unregisterResourceBundle(String resBundlePath) Unregister a resource bundle |
Methods inherited from interface org.alfresco.service.cmr.i18n.MessageLookup |
getMessage, getMessage, getMessage, getMessage |
This should be the bundle base path eg, alfresco/messages/errors or, workspace://SpaceStore/app:company_home/app:dictionary/app:labels/cm:errors
Once registered the messages will be available via getMessage, assuming the bundle resource exists at the given path location.
This should be the bundle base path eg alfresco/messages/errors or workspace://SpaceStore/app:company_home/app:dictionary/app:labels/cm:errors
Once unregistered the messages will no longer be available via getMessage
|