public class

LocaleUtils

extends Object
java.lang.Object
   ↳ com.atlassian.core.util.LocaleUtils

Summary

Constants
String LANGUAGE_DESCRIPTOR_FILENAME
String LOCALE_TAG_NAME
Fields
public List installedLocales
Public Constructors
LocaleUtils()
Public Methods
List getInstalledLocales()
This method locates all installed language bundles that are found on the classpath by looking for LANGUAGE_DESCRIPTOR_FILENAME files on the classpath, and parsing the value of the LOCALE_TAG_NAME element.
Locale getLocale(String locale)
Creates a locale from the given string.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String LANGUAGE_DESCRIPTOR_FILENAME

Constant Value: "language-descriptor.xml"

public static final String LOCALE_TAG_NAME

Constant Value: "locale"

Fields

public List installedLocales

Public Constructors

public LocaleUtils ()

Public Methods

public List getInstalledLocales ()

This method locates all installed language bundles that are found on the classpath by looking for LANGUAGE_DESCRIPTOR_FILENAME files on the classpath, and parsing the value of the LOCALE_TAG_NAME element.

Throws
IOException when problems arise retrieving resources from the classpath

public Locale getLocale (String locale)

Creates a locale from the given string.

Feedback?
View cookie preferences