|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.i18n.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 Vector |
languages
List of languages of the translations that are provided |
static Hashtable |
locales
List of Locales of the translations that are provided. |
static String |
selectedLanguage
Let all objects access what the current language is Default language for RSSOwl is english. |
static Locale |
selectedLocale
Let all objects access what the current Locale is Default locale for RSSOwl is english. |
static Hashtable |
translations
Hashtable holds the class names that provide translations. |
Constructor Summary | |
Dictionary()
|
Method Summary | |
abstract String |
getTranslation(String word)
Return the translated word for the given key |
static void |
register(String language,
String country,
boolean hasLocalSearch,
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 Vector languages
public static final Hashtable locales
public static String selectedLanguage
public static Locale selectedLocale
public static final Hashtable translations
Constructor Detail |
public Dictionary()
Method Detail |
public static void register(String language, String country, boolean hasLocalSearch, 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 String getTranslation(String word)
word
- Get translation for this word
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |