|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.languages.DefaultLanguageManager
public class DefaultLanguageManager
Constructor Summary | |
---|---|
DefaultLanguageManager()
|
Method Summary | |
---|---|
java.util.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(java.lang.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 |
java.util.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(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
|
void |
handlePluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
|
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
void |
setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLanguageManager()
Method Detail |
---|
public static Language getDefaultEnglishLanguage()
public java.util.List<LanguageModuleDescriptor> getAvailableLanguageDescriptors()
public Language getLanguage(java.lang.String languageKey)
LanguageManager
getLanguage
in interface LanguageManager
languageKey
- The key to retrieve the language for
public java.util.List<Language> getLanguages()
LanguageManager
getLanguages
in interface LanguageManager
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void handlePluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
public void handlePluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
public void setPluginEventManager(com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |