public interface

LocaleManager

com.atlassian.confluence.languages.LocaleManager
Known Indirect Subclasses

Summary

Fields
public static final Locale DEFAULT_LOCALE
Public Methods
Locale getLocale(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.
@Deprecated Locale toLocale(String localeString)
This method is deprecated. since 3.2 use toLocale(String) instead

Fields

public static final Locale DEFAULT_LOCALE

Public Methods

public Locale getLocale (User user)

public Locale getSiteDefaultLocale ()

Returns

public 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.

public void setRequestLanguages (String languageString)

Should set the language string from the request in a THREAD LOCAL cache.

@Deprecated public Locale toLocale (String localeString)

This method is deprecated.
since 3.2 use toLocale(String) instead