net.sf.mmm.util.nls.api
Interface NlsLocalizer

All Known Implementing Classes:
NlsCachingLocalizer

public interface NlsLocalizer

This is the interface for a localizer that simplifies the localization of messages via NlsMessages.

Since:
2.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
NlsCachingLocalizer

Method Summary
 String localize(Locale locale, String internationalizedMessage)
          This method localizes the given internationalizedMessage to the given target locale.
 String localize(Locale locale, String internationalizedMessage, Map<String,Object> arguments)
          This method localizes the given internationalizedMessage with the given arguments filled in to the given target locale.
 

Method Detail

localize

String localize(Locale locale,
                String internationalizedMessage,
                Map<String,Object> arguments)
This method localizes the given internationalizedMessage with the given arguments filled in to the given target locale.

Parameters:
locale - is the Locale to translate to.
internationalizedMessage - is the internationalized message to translate.
arguments - are the arguments to fill in.
Returns:
the localized message.

localize

String localize(Locale locale,
                String internationalizedMessage)
This method localizes the given internationalizedMessage to the given target locale.

Parameters:
locale - is the Locale to translate to.
internationalizedMessage - is the internationalized message to translate.
Returns:
the localized message.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.