|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.i18n.Dictionary
public abstract class Dictionary
Abstract clas Dictionary provides information about the selected language, the selected locale and declares a method to get a translation for a given key.
| Field Summary | |
|---|---|
static java.util.Vector |
languages
List of languages of the translations that are provided |
static java.util.Hashtable |
locales
List of Locales of the translations that are provided. |
static java.lang.String |
selectedLanguage
Let all objects access what the current language is Default language for RSSOwl is english. |
static java.util.Locale |
selectedLocale
Let all objects access what the current Locale is Default locale for RSSOwl is english. |
static java.util.Hashtable |
translations
Hashtable holds the class names that provide translations. |
| Constructor Summary | |
|---|---|
Dictionary()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getTranslation(java.lang.String word)
Return the translated word for the given key |
static void |
register(java.lang.String language,
java.lang.String country,
boolean hasLocalSearch,
java.lang.String translationClass)
Register a translation to the dictionary |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Vector languages
public static final java.util.Hashtable locales
public static java.lang.String selectedLanguage
public static java.util.Locale selectedLocale
public static final java.util.Hashtable translations
| Constructor Detail |
|---|
public Dictionary()
| Method Detail |
|---|
public static void register(java.lang.String language,
java.lang.String country,
boolean hasLocalSearch,
java.lang.String translationClass)
language - two-letter ISO-639 codecountry - two-letter ISO-3166 codehasLocalSearch - TRUE if language has a locale searchtranslationClass - The translation class Namepublic abstract java.lang.String getTranslation(java.lang.String word)
word - Get translation for this word
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||