com.atlassian.confluence.languages
Interface LocaleManager
- All Known Implementing Classes:
- DefaultLocaleManager, SetupLocaleManager, TestingLocaleManager
public interface LocaleManager
Method Summary |
java.util.Locale |
getLocale(com.atlassian.user.User user)
|
java.util.Locale |
getSiteDefaultLocale()
|
void |
setLanguage(java.lang.String language)
Should set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache. |
void |
setRequestLanguages(java.lang.String languageString)
Should set the language string from the request in a THREAD LOCAL cache. |
DEFAULT_LOCALE
static final java.util.Locale DEFAULT_LOCALE
getLocale
java.util.Locale getLocale(com.atlassian.user.User user)
setRequestLanguages
void setRequestLanguages(java.lang.String languageString)
- Should set the language string from the request in a THREAD LOCAL cache.
- Parameters:
languageString
-
setLanguage
void setLanguage(java.lang.String language)
- Should set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache.
Does nothing if the language string is invalid.
- Parameters:
language
-
getSiteDefaultLocale
java.util.Locale getSiteDefaultLocale()
- Returns:
- The default site locale, or
DEFAULT_LOCALE
if none is set. - Since:
- 4.3
Copyright © 2003-2013 Atlassian. All Rights Reserved.