|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.util.Languages
public class Languages
A utility class that converts ISO-639 codes or locales to their "friendly" language name.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
static String |
DEFAULT_LANG_CODE
|
private static ResourceBundle |
languages
|
private static String |
UNKNOWN_LANG_CODE
|
| Constructor Summary | |
|---|---|
private |
Languages()
Make the class a true utility class by having a private constructor. |
| Method Summary | |
|---|---|
static String |
getLanguageCode(String input)
Get the language code from the input. |
static String |
getLanguageName(String iso639Code)
Get the language name from the language code. |
static boolean |
isValidLanguage(String iso639Code)
Determine whether the language code is valid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_LANG_CODE
private static final String UNKNOWN_LANG_CODE
private static ResourceBundle languages
| Constructor Detail |
|---|
private Languages()
| Method Detail |
|---|
public static boolean isValidLanguage(String iso639Code)
iso639Code -
public static String getLanguageName(String iso639Code)
iso639Code -
public static String getLanguageCode(String input)
input -
|
Copyright ยจ 2003-2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||