com.atlassian.confluence.languages
Interface LocaleManager

All Known Implementing Classes:
DefaultLocaleManager, TestingLocaleManager

public interface LocaleManager


Field Summary
static Locale DEFAULT_LOCALE
           
 
Method Summary
 Locale getLocale(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.
 Locale toLocale(String localeString)
          Deprecated. since 3.2 use LocaleParser.toLocale(String) instead
 

Field Detail

DEFAULT_LOCALE

static final Locale DEFAULT_LOCALE
Method Detail

getLocale

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

toLocale

Locale toLocale(String localeString)
Deprecated. since 3.2 use LocaleParser.toLocale(String) instead


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 -


Copyright © 2003-2011 Atlassian. All Rights Reserved.