|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.Translations
public class Translations
Translations provides a list of locales that BibleDesktop has been translated into.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
static Locale |
DEFAULT_LOCALE
The default Locale, it the user has not chosen anything else. |
static String |
DEFAULT_TRANSLATION
The default translation, if the user has not chosen anything else. |
private static Translations |
instance
|
private static Logger |
log
The log stream |
private static Locale |
originalLocale
The locale that the program starts with. |
private String |
translation
The translation that BibleDesktop should use. |
private static String |
TRANSLATION_KEY
The key used in config.xml |
private String[] |
translations
List of available translations. |
Constructor Summary | |
---|---|
private |
Translations()
Singleton classes have private constructors. |
Method Summary | |
---|---|
String |
getCurrent()
Get the current translation as a human readable string. |
Locale |
getCurrentLocale()
Get the locale for the current translation. |
static String |
getCurrentTranslation()
Get the current translation as a human readable string. |
Map |
getSupported()
Gets a listing of all the translations that Bible Desktop supports. |
static Map |
getSupportedTranslations()
Gets a listing of all the translations that Bible Desktop supports. |
static Translations |
instance()
All access to Translations is through this single instance. |
private void |
loadSupportedTranslations()
Get a list of the supported translations |
void |
register()
Register this class with the common config engine. |
void |
setCurrent(String newTranslation)
Set the current translation, using human readable string. |
static void |
setCurrentTranslation(String newTranslation)
Set the current translation, using human readable string. |
void |
setLocale()
Set the locale for the program to the one the user has selected. |
String |
toString(String translationCode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String TRANSLATION_KEY
public static final String DEFAULT_TRANSLATION
public static final Locale DEFAULT_LOCALE
private String translation
private String[] translations
private static Locale originalLocale
private static Translations instance
private static final Logger log
Constructor Detail |
---|
private Translations()
Method Detail |
---|
public static Translations instance()
public Map getSupported()
public Locale getCurrentLocale()
public String getCurrent()
public void setCurrent(String newTranslation)
newTranslation
- the translation to usepublic void setLocale()
public void register()
public static String getCurrentTranslation()
public static void setCurrentTranslation(String newTranslation)
newTranslation
- the translation to usepublic static Map getSupportedTranslations()
private void loadSupportedTranslations()
public String toString(String translationCode)
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |