|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.I18n
public class I18n
some utility methods useful for internationalization.
| Constructor Summary | |
|---|---|
I18n()
|
|
| Method Summary | |
|---|---|
static boolean |
isSupportedCountry(String countryCode)
based on uppercase ISO 3166 2-letter code |
static Locale |
localeFor(String localeIdentifier)
retrieves the Locale based on the toString() method of a supported Locale, or null if none is available. |
static Locale |
localeForCountry(String countryCode)
retrieves a supported Locale based on a given uppercase ISO 3166 2-letter code or null if none is available. |
static String |
sampleString(Locale l)
returns a sample String for the given locale - displayed in the default locale |
static String |
sampleString(Locale l,
Locale lang)
returns a sample String for the first given locale displayed in the second given locale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public I18n()
| Method Detail |
|---|
public static String sampleString(Locale l)
public static String sampleString(Locale l,
Locale lang)
public static Locale localeFor(String localeIdentifier)
public static Locale localeForCountry(String countryCode)
public static boolean isSupportedCountry(String countryCode)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||