Package org.geotools.metadata.i18n
Class Locales
- Object
-
- Locales
-
public final class Locales extends Object
Static i18n methods.- Since:
- 2.4
- Author:
- Martin Desruisseaux
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Locale[]
getAvailableLanguages()
Returns available languages.static Locale[]
getAvailableLocales()
Returns the list of available locales.static String[]
getAvailableLocales(Locale locale)
Returns the list of available locales formatted as string in the specified locale.static void
main(String... args)
Prints the list of available locales.
-
-
-
Method Detail
-
getAvailableLanguages
public static Locale[] getAvailableLanguages()
Returns available languages.- Returns:
- Available languages.
-
getAvailableLocales
public static Locale[] getAvailableLocales()
Returns the list of available locales.- Returns:
- Available locales.
-
getAvailableLocales
public static String[] getAvailableLocales(Locale locale)
Returns the list of available locales formatted as string in the specified locale.- Parameters:
locale
- The locale to use for formatting the strings to be returned.- Returns:
- String descriptions of available locales.
-
main
public static void main(String... args)
Prints the list of available locales.- Parameters:
args
- Command-lines arguments.
-
-