org.workingfrog.i18n.util
Class Wrapper

java.lang.Object
  extended byorg.workingfrog.i18n.util.Wrapper

public class Wrapper
extends java.lang.Object

Maps "legacy" keys with i18n keys.

Author:
Jean-Hugues de Raigniac

Constructor Summary
Wrapper()
           
 
Method Summary
static java.lang.String getI18NKey(java.lang.String name)
          Return the i18n version of the key provided.
static void loadKeyFile(java.lang.Class appClass, java.lang.String file)
          Loads key bindings from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wrapper

public Wrapper()
Method Detail

loadKeyFile

public static void loadKeyFile(java.lang.Class appClass,
                               java.lang.String file)
Loads key bindings from a file.

Parameters:
appClass - Class of the Caller
file - the properties file

getI18NKey

public static java.lang.String getI18NKey(java.lang.String name)
Return the i18n version of the key provided.

Parameters:
name - the "legacy" key
Returns:
the i18n version