org.objectweb.telosys.uil.i18n
Interface Translator

All Known Implementing Classes:
StandardTranslator

public interface Translator

The interface for translations dictionaries


Method Summary
 boolean isEmpty()
          Returns true if this translator is empty ( contains no keys to translate )
 int size()
          Returns the dictionary size ( translator entries count )
 java.lang.String translate(java.lang.String sKey, java.lang.String sLanguage)
          Returns the translated text for the given key and the given language
 

Method Detail

translate

public java.lang.String translate(java.lang.String sKey,
                                  java.lang.String sLanguage)
Returns the translated text for the given key and the given language

Parameters:
sKey - the tag attribute key ( e.g. : "MyTagId.txt")
sLanguage - the language ( e.g. : "fr", "en", "it", ... )
Returns:
the translated text, or null if there's no translation for the given key

size

public int size()
Returns the dictionary size ( translator entries count )

Returns:

isEmpty

public boolean isEmpty()
Returns true if this translator is empty ( contains no keys to translate )

Returns: