public interface

LocaleManager

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

Summary

Fields
public static final Locale DEFAULT_LOCALE
Public Methods
abstract Locale getLocale(User user)
abstract void setLanguage(String language)
Should set the language string as given by Locale (en-gb for example) in a THREAD LOCAL cache.
abstract void setRequestLanguages(String languageString)
Should set the language string from the request in a THREAD LOCAL cache.
abstract 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 abstract Locale getLocale (User user)

public abstract 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 abstract void setRequestLanguages (String languageString)

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

public abstract Locale toLocale (String localeString)

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