net.sf.tlc.core
Interface I18nHelper

All Known Implementing Classes:
DefaultI18nHelper

public interface I18nHelper

I18n (Internationalization) Helper Interface

Author:
aisrael

Method Summary
 java.util.Locale getCurrentLocale()
          Get the current Locale
 java.lang.String getMessage(java.lang.String key)
          Retrieve the corresponding internationalized message according to the current Locale.
 void setCurrentLocale(java.util.Locale locale)
          Set the current Locale.
 

Method Detail

setCurrentLocale

public void setCurrentLocale(java.util.Locale locale)
Set the current Locale. Typically, implementations will also use load the

Parameters:
locale - The Locale to use

getCurrentLocale

public java.util.Locale getCurrentLocale()
Get the current Locale

Returns:
the current Locale

getMessage

public java.lang.String getMessage(java.lang.String key)
Retrieve the corresponding internationalized message according to the current Locale.

Parameters:
key - The message key
Returns:
The internationalived message


Copyright © 2005 TheLittleContainer. All Rights Reserved.