public interface LocaleManager
Modifier and Type | Field and Description |
---|---|
static Locale |
DEFAULT_LOCALE |
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale(com.atlassian.user.User user) |
default LocaleInfo |
getLocaleInfo(com.atlassian.user.User user) |
Locale |
getSiteDefaultLocale() |
default void |
invalidateLocaleInfoCache(com.atlassian.user.User user) |
void |
setLanguage(String language)
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.
|
static final Locale DEFAULT_LOCALE
Locale getLocale(com.atlassian.user.User user)
@Nonnull default LocaleInfo getLocaleInfo(@Nullable com.atlassian.user.User user)
user
- default void invalidateLocaleInfoCache(@Nullable com.atlassian.user.User user)
void setRequestLanguages(String languageString)
languageString
- comma- or semicolon-separated languagesvoid setLanguage(String language)
language
- target languageLocale getSiteDefaultLocale()
DEFAULT_LOCALE
if none is set.Copyright © 2003–2018 Atlassian. All rights reserved.