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.
Should use the LocaleManager interface or LocaleParser instead.
  • Field Details

  • Constructor Details

    • JiraLocaleUtils

      public JiraLocaleUtils()
      Deprecated.
  • Method Details

    • getInstalledLocales

      public List<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
    • resetInstalledLocales

      public void resetInstalledLocales()
      Deprecated.
    • getInstalledLocalesWithDefault

      public Map<String,String> getInstalledLocalesWithDefault(Locale defaultLocale, I18nHelper helper)
      Retrieve 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 locale
      helper - i18n helper
      Returns:
      a map of locale (as String) to locale display name
    • parseLocale

      public static Locale parseLocale(String locale)
      Deprecated.
      Use
      invalid @link
      {@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 List<Locale> calculateAvailableLocales(Locale userLocale)
      Deprecated.