com.atlassian.jira.web.util
Class JiraLocaleUtils

java.lang.Object
  extended by com.atlassian.core.util.LocaleUtils
      extended by com.atlassian.jira.web.util.JiraLocaleUtils

public class JiraLocaleUtils
extends com.atlassian.core.util.LocaleUtils


Field Summary
static String DEFAULT_LOCALE_I18N_KEY
           
static String DEFAULT_LOCALE_ID
           
 
Fields inherited from class com.atlassian.core.util.LocaleUtils
installedLocales, LANGUAGE_DESCRIPTOR_FILENAME, LOCALE_TAG_NAME
 
Constructor Summary
JiraLocaleUtils()
           
 
Method Summary
 List getInstalledLocales()
           
 Map getInstalledLocalesWithDefault(Locale defaultLocale, I18nHelper helper)
          Retrieve the installed locales for the UI.
static Locale parseLocale(String locale)
          Creates a locale from the given string.
 
Methods inherited from class com.atlassian.core.util.LocaleUtils
getLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCALE_ID

public static final String DEFAULT_LOCALE_ID
See Also:
Constant Field Values

DEFAULT_LOCALE_I18N_KEY

public static final String DEFAULT_LOCALE_I18N_KEY
See Also:
Constant Field Values
Constructor Detail

JiraLocaleUtils

public JiraLocaleUtils()
Method Detail

getInstalledLocales

public List getInstalledLocales()
Overrides:
getInstalledLocales in class com.atlassian.core.util.LocaleUtils

getInstalledLocalesWithDefault

public Map getInstalledLocalesWithDefault(Locale defaultLocale,
                                          I18nHelper helper)
Retrieve the installed locales for the UI. Add 'Default' so that the JVM default can be used


parseLocale

public static Locale parseLocale(String locale)
Creates a locale from the given string. Similar to LocaleUtils, but this one is static

Parameters:
locale -
Returns:


Copyright © 2002-2007 Atlassian. All Rights Reserved.