org.rythmengine.extension
Interface II18nMessageResolver
- All Known Implementing Classes:
- II18nMessageResolver.DefaultImpl
public interface II18nMessageResolver
Define interface for customized i18n message resolver
getMessage
String getMessage(ITemplate template,
String key,
Object... args)
Return i18n message of a given key and args, use the locale info from the template specified.
if null template passed in then it will try to guess from the current engine via
RythmEngine.get()
- Parameters:
template
- key
- args
- the format arguments. If the first argument is of type Locale then it will be used to specify
the locale of the processing, and the rest elements are used as format arguments
- Returns:
- the i18n message
Copyright © 2013. All Rights Reserved.