|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.i18n.Translation
public abstract class 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 java.util.Locale |
locale
Locale of the translation |
protected java.util.HashMap |
translation
The HashMap maps i18n-keys to translated values. |
| Constructor Summary | |
|---|---|
protected |
Translation(java.lang.String language,
java.lang.String country)
Instantiate a new translation for a locale |
| Method Summary | |
|---|---|
java.util.HashMap |
getTranslation()
Get the Hashmap with the translation |
protected abstract void |
initTranslation()
Fill the HashMap with translations |
java.lang.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 java.util.Locale locale
protected java.util.HashMap translation
| Constructor Detail |
|---|
protected Translation(java.lang.String language,
java.lang.String country)
language - two-letter ISO-639 codecountry - two-letter ISO-3166 code| Method Detail |
|---|
public java.util.HashMap getTranslation()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()protected abstract void initTranslation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||