com.atlassian.confluence.languages
Interface LocaleManager

All Known Implementing Classes:
DefaultLocaleManager, SetupLocaleManager, TestingLocaleManager

public interface LocaleManager


Field Summary
static Locale DEFAULT_LOCALE
           
 
Method Summary
 Locale getLocale(com.atlassian.user.User user)
           
 Locale getSiteDefaultLocale()
           
 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.
 

Field Detail

DEFAULT_LOCALE

static final Locale DEFAULT_LOCALE
Method Detail

getLocale

Locale getLocale(com.atlassian.user.User user)

setRequestLanguages

void setRequestLanguages(String languageString)
Should set the language string from the request in a THREAD LOCAL cache.

Parameters:
languageString -

setLanguage

void setLanguage(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

Locale getSiteDefaultLocale()
Returns:
The default site locale, or DEFAULT_LOCALE if none is set.
Since:
4.3


Copyright © 2003–2015 Atlassian. All rights reserved.