org.xulux.utils
Class Translator

java.lang.Object
  extended by org.xulux.utils.Translator

public class Translator
extends java.lang.Object

Retrievs the specified internationalized text

Version:
$Id: Translator.java,v 1.1 2005/12/18 12:58:15 mvdb Exp $
Author:
Martin van den Bemt

Constructor Summary
protected Translator()
           
 
Method Summary
protected static Translator getInstance()
           
static java.lang.String translate(java.util.List list, java.lang.String key)
          For now only support for full i18n (so the first entry in the key must be the percent sign to get translated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translator

protected Translator()
Method Detail

getInstance

protected static Translator getInstance()
Returns:
the instance of the translator

translate

public static java.lang.String translate(java.util.List list,
                                         java.lang.String key)
For now only support for full i18n (so the first entry in the key must be the percent sign to get translated.

Parameters:
list - the list of urls
key - the key to translate
Returns:
the key or the found value if


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.