Package com.atlassian.jira.web.util
Class JiraLocaleUtils
java.lang.Object
com.atlassian.core.util.LocaleUtils
com.atlassian.jira.web.util.JiraLocaleUtils
public class JiraLocaleUtils
extends com.atlassian.core.util.LocaleUtils
Deprecated.
-
Field Summary
FieldsFields inherited from class com.atlassian.core.util.LocaleUtils
installedLocales, LANGUAGE_DESCRIPTOR_FILENAME, LOCALE_TAG_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateAvailableLocales(Locale userLocale) Deprecated.Deprecated.UseLocaleManager.getInstalledLocales()) instead.getInstalledLocalesWithDefault(Locale defaultLocale, I18nHelper helper) Deprecated.static LocaleparseLocale(String locale) Deprecated.Useinvalid @link
{@link com.atlassian.jira.util.LocaleParser#parseLocale) instead. Since v4.2voidDeprecated.Methods inherited from class com.atlassian.core.util.LocaleUtils
getLocale
-
Field Details
-
DEFAULT_LOCALE_ID
Deprecated.- See Also:
-
DEFAULT_LOCALE_I18N_KEY
Deprecated.- See Also:
-
-
Constructor Details
-
JiraLocaleUtils
public JiraLocaleUtils()Deprecated.
-
-
Method Details
-
getInstalledLocales
Deprecated.UseLocaleManager.getInstalledLocales()) instead. Since v4.2Returns a lazily-instantiated, unmodifiable List containing the installed locales.- Overrides:
getInstalledLocalesin classcom.atlassian.core.util.LocaleUtils- Returns:
- an unmodifiable List of Locale
-
resetInstalledLocales
public void resetInstalledLocales()Deprecated. -
getInstalledLocalesWithDefault
Deprecated.UseLocaleManager.getInstalledLocalesWithDefault(java.util.Locale, com.atlassian.jira.util.I18nHelper)) instead. Since v4.2Retrieve the installed locales for the UI. Add 'Default' so that the JVM default can be used.The display name for each locale is written in that same locale to ensure that users are able to identify their own language.
- Parameters:
defaultLocale- default localehelper- i18n helper- Returns:
- a map of locale (as String) to locale display name
-
parseLocale
Deprecated.Useinvalid @link
{@link com.atlassian.jira.util.LocaleParser#parseLocale) instead. Since v4.2Creates 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
Deprecated.
-
LocaleManagerinterface orLocaleParserinstead.