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

Deprecated. Should use the LocaleManager interface or LocaleParser instead.

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


Field Summary
static java.lang.String DEFAULT_LOCALE_I18N_KEY
          Deprecated.  
static java.lang.String DEFAULT_LOCALE_ID
          Deprecated.  
 
Fields inherited from class com.atlassian.core.util.LocaleUtils
installedLocales, LANGUAGE_DESCRIPTOR_FILENAME, LOCALE_TAG_NAME
 
Constructor Summary
JiraLocaleUtils()
          Deprecated.  
 
Method Summary
protected  java.util.List<java.util.Locale> calculateAvailableLocales()
          Deprecated.  
 java.util.List<java.util.Locale> getInstalledLocales()
          Deprecated. Use LocaleManager.getInstalledLocales() ) instead. Since v4.2
 java.util.Map<java.lang.String,java.lang.String> getInstalledLocalesWithDefault(java.util.Locale defaultLocale, I18nHelper helper)
          Deprecated. Use LocaleManager.getInstalledLocalesWithDefault(java.util.Locale, com.atlassian.jira.util.I18nHelper) ) instead. Since v4.2
static java.util.Locale parseLocale(java.lang.String locale)
          Deprecated. Use {@link com.atlassian.jira.util.LocaleParser#parseLocale) instead. Since v4.2
 
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 java.lang.String DEFAULT_LOCALE_ID
Deprecated. 
See Also:
Constant Field Values

DEFAULT_LOCALE_I18N_KEY

public static final java.lang.String DEFAULT_LOCALE_I18N_KEY
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

JiraLocaleUtils

public JiraLocaleUtils()
Deprecated. 
Method Detail

getInstalledLocales

public java.util.List<java.util.Locale> getInstalledLocales()
Deprecated. Use LocaleManager.getInstalledLocales() ) instead. Since v4.2

Returns a lazily-instantiated, unmodifiable List containing the installed locales.

Overrides:
getInstalledLocales in class com.atlassian.core.util.LocaleUtils
Returns:
an unmodifiable List of Locale

getInstalledLocalesWithDefault

public java.util.Map<java.lang.String,java.lang.String> getInstalledLocalesWithDefault(java.util.Locale defaultLocale,
                                                                                       I18nHelper helper)
Deprecated. Use LocaleManager.getInstalledLocalesWithDefault(java.util.Locale, com.atlassian.jira.util.I18nHelper) ) instead. Since v4.2

Retrieve the installed locales for the UI. Add 'Default' so that the JVM default can be used

Parameters:
defaultLocale - default locale
helper - i18n helper
Returns:
a map of locale (as String) to locale display name

parseLocale

public static java.util.Locale parseLocale(java.lang.String locale)
Deprecated. Use {@link com.atlassian.jira.util.LocaleParser#parseLocale) instead. Since v4.2

Creates a locale from the given string. Similar to LocaleUtils, but this one is static

Parameters:
locale - locale
Returns:
new locale based on the parameter, or null if parameter not set

calculateAvailableLocales

protected java.util.List<java.util.Locale> calculateAvailableLocales()
Deprecated. 


Copyright © 2002-2011 Atlassian. All Rights Reserved.