public final class Languages extends Object
Language
to their
localized language name.The GNU Lesser General Public License for details.
Modifier and Type | Class and Description |
---|---|
static class |
Languages.AllLanguages
Provide a fallback lookup against a huge list of all languages.
|
static class |
Languages.RtoL
Provide a fallback lookup against a huge list of all languages.
|
Modifier and Type | Field and Description |
---|---|
private static Map<Locale,ResourceBundle> |
localisedCommonLanguages |
protected static org.slf4j.Logger |
log
The log stream
|
Modifier | Constructor and Description |
---|---|
private |
Languages()
Make the class a true utility class by having a private constructor.
|
Modifier and Type | Method and Description |
---|---|
private static ResourceBundle |
getLocalisedCommonLanguages()
Gets the localised common languages.
|
static String |
getName(String code)
Get the language name for the BCP-47 specification of the language.
|
private static ResourceBundle |
initLanguages(Locale locale) |
private static Map<Locale,ResourceBundle> localisedCommonLanguages
protected static final org.slf4j.Logger log
private Languages()
public static String getName(String code)
code
- the BCP-47 specification for the languageprivate static ResourceBundle getLocalisedCommonLanguages()
private static ResourceBundle initLanguages(Locale locale)