net.sf.jeters.internationalization
Class TranslationReader

java.lang.Object
  extended by net.sf.jeters.internationalization.TranslationReader

public class TranslationReader
extends java.lang.Object

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

TranslationReader

public TranslationReader(java.util.Locale locale)
constructor determining the locale to load translations for (if possible)

Parameters:
locale - locale to load translations for
Method Detail

readTranslation

public java.util.ResourceBundle readTranslation(java.lang.String simpleComponentClassName,
                                                java.lang.ClassLoader classLoader)
get the RessourceBundle with the translation for a component

Parameters:
simpleComponentClassName - simple name of the component's class
classLoader - loader that will be used to load the .properties file
Returns:
ResourceBundle with language-specific strings for the component