|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.Languages
public final class Languages
A utility class that converts bcp-47 codes as supported by Language to their
localized language name.
The GNU Lesser General Public License for details.| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
private static Map<Locale,ResourceBundle> |
localisedCommonLanguages
|
protected static org.slf4j.Logger |
log
The log stream |
| Constructor Summary | |
|---|---|
private |
Languages()
Make the class a true utility class by having a private constructor. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Map<Locale,ResourceBundle> localisedCommonLanguages
protected static final org.slf4j.Logger log
| Constructor Detail |
|---|
private Languages()
| Method Detail |
|---|
public static String getName(String code)
code - the BCP-47 specification for the language
private static ResourceBundle getLocalisedCommonLanguages()
private static ResourceBundle initLanguages(Locale locale)
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||