|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.rssowl.util.i18n.Translation
Translation is the Super-Class for all i18n translation classes in RSSOwl. It provides the HashMap, to store the translations. A locale indicates for what locales the translation should be used.
| Field Summary | |
private static int |
HASHMAP_INITIAL_CAP
The initial capacity of the Dictionaries HashMap. |
private Locale |
locale
Locale of the translation |
protected HashMap |
translation
The HashMap maps i18n-keys to translated values. |
| Constructor Summary | |
protected |
Translation(String language,
String country)
Instantiate a new translation for a locale |
| Method Summary | |
HashMap |
getTranslation()
Get the Hashmap with the translation |
protected abstract void |
initTranslation()
Fill the HashMap with translations |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final int HASHMAP_INITIAL_CAP
private Locale locale
protected HashMap translation
| Constructor Detail |
protected Translation(String language,
String country)
language - two-letter ISO-639 codecountry - two-letter ISO-3166 code| Method Detail |
public HashMap getTranslation()
public String toString()
Object.toString()protected abstract void initTranslation()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||