|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeters.internationalization.TranslationReader
public class TranslationReader
class that loads translations from .properties files.
The translations have to be named and placed as specified
in the documentation for Translatable
.
This class is not intended to be used directly by components.
Constructor Summary | |
---|---|
TranslationReader(java.util.Locale locale)
constructor determining the locale to load translations for (if possible) |
Method Summary | |
---|---|
java.util.ResourceBundle |
readTranslation(java.lang.String simpleComponentClassName,
java.lang.ClassLoader classLoader)
get the RessourceBundle with the translation for a component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslationReader(java.util.Locale locale)
locale
- locale to load translations forMethod Detail |
---|
public java.util.ResourceBundle readTranslation(java.lang.String simpleComponentClassName, java.lang.ClassLoader classLoader)
simpleComponentClassName
- simple name of the component's classclassLoader
- loader that will be used to load the .properties file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |