net.sourceforge.rssowl.util.i18n
Class Dictionary

java.lang.Object
  extended bynet.sourceforge.rssowl.util.i18n.Dictionary
Direct Known Subclasses:
RSSOwlI18n

public abstract class Dictionary
extends Object

Abstract clas Dictionary provides information about the selected language, the selected locale and declares a method to get a translation for a given key.

Version:
1.1.3
Author:
Benjamin Pasero

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

languages

public static final Vector languages
List of languages of the translations that are provided


locales

public static final Hashtable locales
List of Locales of the translations that are provided.


selectedLanguage

public static String selectedLanguage
Let all objects access what the current language is Default language for RSSOwl is english.


selectedLocale

public static Locale selectedLocale
Let all objects access what the current Locale is Default locale for RSSOwl is english.


translations

public static final Hashtable translations
Hashtable holds the class names that provide translations. The language of the translation is the key for the class name.

Constructor Detail

Dictionary

public Dictionary()
Method Detail

register

public static void register(String language,
                            String country,
                            boolean hasLocalSearch,
                            String translationClass)
Register a translation to the dictionary

Parameters:
language - two-letter ISO-639 code
country - two-letter ISO-3166 code
hasLocalSearch - TRUE if language has a locale search
translationClass - The translation class Name

getTranslation

public abstract String getTranslation(String word)
Return the translated word for the given key

Parameters:
word - Get translation for this word
Returns:
String translated word


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo