net.xoetrope.xui.helper
Interface XTranslator

All Known Implementing Classes:
XDefaultTranslator

public interface XTranslator

An interface for translation objects (a utility for looking up translations in a resource bundle.

Copyright (c) Xoetrope Ltd., 2002-2005

$Revision: 1.1 $

License: see License.txt


Method Summary
 void setResourceBundle(java.util.ResourceBundle bundle)
          Set the resource bundle for this translator
 java.lang.String translate(java.lang.String key)
          Look up the translation of a key using the current language resource.
 

Method Detail

setResourceBundle

void setResourceBundle(java.util.ResourceBundle bundle)
Set the resource bundle for this translator

Parameters:
bundle - the translation resource bundle

translate

java.lang.String translate(java.lang.String key)
Look up the translation of a key using the current language resource. If the translation is not found the key valueis returned.

Parameters:
key - the key string
Returns:
the translation