com.atlassian.jira.config
Interface LocaleManager

All Known Implementing Classes:
DefaultLocaleManager

public interface LocaleManager

Provides Locale information for this JIRA instance.

Since:
v4.0

Method Summary
 java.util.Set<java.util.Locale> getInstalledLocales()
          Returns a set of locales supported by this JIRA instance.
 java.util.Map<java.lang.String,java.lang.String> getInstalledLocalesWithDefault(java.util.Locale defaultLocale, I18nHelper i18nHelper)
          Returns a mapping of localeString to its displayname.
 java.util.Locale getLocale(java.lang.String locale)
          Given a string, return the corresponding Locale.
 

Method Detail

getInstalledLocales

java.util.Set<java.util.Locale> getInstalledLocales()
Returns a set of locales supported by this JIRA instance. This is typically the language packs installed.

Returns:
a set of locales supported

getInstalledLocalesWithDefault

java.util.Map<java.lang.String,java.lang.String> getInstalledLocalesWithDefault(java.util.Locale defaultLocale,
                                                                                I18nHelper i18nHelper)
Returns a mapping of localeString to its displayname. Also includes a 'Default' locale.

Parameters:
defaultLocale - The locale to use as the default
i18nHelper - Required to internationalize the 'Default'
Returns:
A mapping from localeString to its displayname.

getLocale

java.util.Locale getLocale(java.lang.String locale)
Given a string, return the corresponding Locale.

Parameters:
locale - Locale in string form
Returns:
The Locale object


Copyright © 2002-2010 Atlassian. All Rights Reserved.