net.sf.jmp3renamer
Class AbstractTranslatablePlugin

java.lang.Object
  extended by net.sf.jmp3renamer.AbstractTranslatablePlugin
All Implemented Interfaces:
Translatable

public abstract class AbstractTranslatablePlugin
extends Object
implements Translatable


Field Summary
protected  Properties english
           
protected  Properties lang
           
private  Logger logger
           
 
Constructor Summary
AbstractTranslatablePlugin()
           
 
Method Summary
 Properties getLanguageTable(String locale)
          Loads the translations for the given locale and returns them as a Properties object
abstract  String getName()
           
abstract  void initLanguage()
           
 void loadLanguage()
           
 void loadLanguageFromJar(Properties lang, String locale)
          Loads the translations for the given locale in the lang table
 void loadlLanguageFromFile(Properties lang, String locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger

english

protected Properties english

lang

protected Properties lang
Constructor Detail

AbstractTranslatablePlugin

public AbstractTranslatablePlugin()
Method Detail

getLanguageTable

public Properties getLanguageTable(String locale)
                            throws IOException
Description copied from interface: Translatable
Loads the translations for the given locale and returns them as a Properties object

Specified by:
getLanguageTable in interface Translatable
Throws:
IOException
See Also:
Translatable.getLanguageTable(String)

initLanguage

public abstract void initLanguage()

loadLanguage

public void loadLanguage()

loadLanguageFromJar

public void loadLanguageFromJar(Properties lang,
                                String locale)
                         throws IOException
Loads the translations for the given locale in the lang table

Parameters:
locale -
Throws:
IOException
See Also:
lang

loadlLanguageFromFile

public void loadlLanguageFromFile(Properties lang,
                                  String locale)
                           throws IOException
Throws:
IOException

getName

public abstract String getName()