public class

DefaultLanguageManager

extends Object
implements LanguageManager
java.lang.Object
   ↳ com.atlassian.confluence.languages.DefaultLanguageManager

Summary

Public Constructors
DefaultLanguageManager()
Public Methods
List<LanguageModuleDescriptor> 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
Map<StringLanguage> getLanguageMap()
List<Language> 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 handlePluginModuleDisabled(PluginModuleDisabledEvent event)
void handlePluginModuleEnabled(PluginModuleEnabledEvent event)
void setPluginAccessor(PluginAccessor pluginAccessor)
void setPluginEventManager(PluginEventManager pluginEventManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.languages.LanguageManager

Public Constructors

public DefaultLanguageManager ()

Public Methods

public List<LanguageModuleDescriptor> getAvailableLanguageDescriptors ()

Retrieves a List of all enabled LanguageModuleDescriptors

Returns
  • List containing the LanguageModuleDescriptor objects

public static Language getDefaultEnglishLanguage ()

Returns a Language object with the Locale set to en_GB Also sets the location of the flag URL

Returns
  • the english language default

public 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

Parameters
languageKey The key to retrieve the language for
Returns
  • A Language object

public Map<StringLanguage> getLanguageMap ()

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

Returns
  • A list containing Language objects

public void handlePluginModuleDisabled (PluginModuleDisabledEvent event)

public void handlePluginModuleEnabled (PluginModuleEnabledEvent event)

public void setPluginAccessor (PluginAccessor pluginAccessor)

public void setPluginEventManager (PluginEventManager pluginEventManager)