public class LocaleUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COUNTRY_CODES
Deprecated.
Array with all country codes.
|
static String[] |
LANGUAGE_CODES
Deprecated.
The Constant LANGUAGE_CODES.
|
| Constructor and Description |
|---|
LocaleUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Locale |
getLocale(String code)
Deprecated.
use instead LocaleResolver#resolveLocaleCode(String)
|
static String |
getLocaleCode(File propertiesFile)
Deprecated.
use instead LocaleResolver#resolveLocaleCode(File)
|
static String |
getLocaleFilenameSuffix(Locale locale)
Deprecated.
use instead LocaleExtensions#getLocaleFileSuffix(Locale)
|
static String |
getLocaleFileSuffix(Locale locale,
boolean withCountry)
Deprecated.
|
static String |
getLocaleFileSuffix(Locale locale,
boolean withCountry,
boolean withVariant)
Deprecated.
|
static String |
getLocaleFileSuffix(Locale locale,
boolean withCountry,
boolean withVariant,
boolean withUnderscorePrefix)
Deprecated.
|
static String |
getLocaleName(Locale locale)
Deprecated.
use instead
LocaleExtensions.getLocaleName(Locale) |
static boolean |
isISOCountryCode(String code)
Deprecated.
use instead LocaleResolver#isISOCountryCode(String)
|
public static final String[] COUNTRY_CODES
public static final String[] LANGUAGE_CODES
public static Locale getLocale(String code)
String code like "en", "en_US" or "en_US_win" to new
Locale.code - the codeLocale object or null.public static String getLocaleCode(File propertiesFile)
propertiesFile - the properties filepublic static String getLocaleFilenameSuffix(Locale locale)
locale - the localepublic static String getLocaleFileSuffix(Locale locale, boolean withCountry)
LocaleExtensions.getLocaleFileSuffix(Locale, boolean)locale - the localewithCountry - the with countrypublic static String getLocaleFileSuffix(Locale locale, boolean withCountry, boolean withVariant)
LocaleExtensions.getLocaleFileSuffix(Locale, boolean, boolean)locale - the localewithCountry - with countrywithVariant - with variantpublic static String getLocaleFileSuffix(Locale locale, boolean withCountry, boolean withVariant, boolean withUnderscorePrefix)
LocaleExtensions.getLocaleFileSuffix(Locale, boolean, boolean, boolean)locale - the localewithCountry - with countrywithVariant - with variantwithUnderscorePrefix - true if the result has to have the underscore prefix@Deprecated public static String getLocaleName(Locale locale)
LocaleExtensions.getLocaleName(Locale)locale - the localepublic static boolean isISOCountryCode(String code)
code - The code to check.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.