com.atlassian.confluence.languages
Class DefaultLanguageManager

java.lang.Object
  extended bycom.atlassian.confluence.languages.DefaultLanguageManager
All Implemented Interfaces:
LanguageManager

public class DefaultLanguageManager
extends Object
implements LanguageManager

Created by IntelliJ IDEA. User: Jeremy Higgs Date: 2/02/2006 Time: 10:44:32


Constructor Summary
DefaultLanguageManager()
           
 
Method Summary
 List getAvailableLanguageDescriptors()
          Retrieves a List of all enabled LanguageModuleDescriptors
static Language getDefaultEnglishLanguage()
          Returns a Language object with the Locale set to en_GB Also sets the location of the flag URL
 Language getLanguage(String languageKey)
          Retrieves the Language for the given key Null is returned when a plugin with languageKey could not be found, or it was not a Language
 List getLanguages()
          Returns a list of Language objects, representing the currently loaded languages The en_GB locale is also added to the list The sorting for this list is undefined.
 void init()
           
 void setEventManager(EventManager eventManager)
           
 void setPluginManager(PluginManager pluginManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLanguageManager

public DefaultLanguageManager()
Method Detail

getDefaultEnglishLanguage

public static Language getDefaultEnglishLanguage()
Returns a Language object with the Locale set to en_GB Also sets the location of the flag URL


getAvailableLanguageDescriptors

public List getAvailableLanguageDescriptors()
Retrieves a List of all enabled LanguageModuleDescriptors

Returns:
List containing the LanguageModuleDescriptor objects

getLanguage

public Language getLanguage(String languageKey)
Description copied from interface: LanguageManager
Retrieves the Language for the given key Null is returned when a plugin with languageKey could not be found, or it was not a Language

Specified by:
getLanguage in interface LanguageManager
Parameters:
languageKey - The key to retrieve the language for
Returns:
A Language object

getLanguages

public List getLanguages()
Description copied from interface: LanguageManager
Returns a list of Language objects, representing the currently loaded languages The en_GB locale is also added to the list The sorting for this list is undefined.

Specified by:
getLanguages in interface LanguageManager
Returns:
A list containing Language objects

setPluginManager

public void setPluginManager(PluginManager pluginManager)

init

public void init()

setEventManager

public void setEventManager(EventManager eventManager)


Confluence is developed by Atlassian.