public class SetupLocaleManager extends Object implements LocaleManager
Does not allow write operations, which are supposed to be cached for the request or user, since there is no user in
the setup context. Will always delegate to the getSiteDefaultLocale() even if a user is supplied.
DEFAULT_LOCALE| Constructor and Description |
|---|
SetupLocaleManager(com.atlassian.config.ApplicationConfiguration applicationConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale(com.atlassian.user.User user) |
Locale |
getSiteDefaultLocale() |
void |
setLanguage(String selectedLanguage)
Should set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache.
|
void |
setRequestLanguages(String languageString)
Should set the language string from the request in a THREAD LOCAL cache.
|
public SetupLocaleManager(com.atlassian.config.ApplicationConfiguration applicationConfiguration)
public Locale getSiteDefaultLocale()
getSiteDefaultLocale in interface LocaleManagerLocaleManager.DEFAULT_LOCALE if none is set.public Locale getLocale(com.atlassian.user.User user)
getLocale in interface LocaleManagerpublic void setRequestLanguages(String languageString)
LocaleManagersetRequestLanguages in interface LocaleManagerpublic void setLanguage(String selectedLanguage)
LocaleManagersetLanguage in interface LocaleManagerCopyright © 2003–2016 Atlassian. All rights reserved.