Package com.isomorphic.util
Interface LocaleMessageProvider
public interface LocaleMessageProvider
Interface to implement by custom i18n messages providers. Use
LocaleMessageProviderRegistry
to register custom providers.-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String key, Locale locale, String preText, String postText, LocaleMessageSourceEnum source, String sourceFilename) Will be called by framework when evaluating i18n message (<fmt> tag).
-
Method Details
-
getMessage
String getMessage(String key, Locale locale, String preText, String postText, LocaleMessageSourceEnum source, String sourceFilename) Will be called by framework when evaluating i18n message (<fmt> tag).- Parameters:
key
- i18n message keylocale
- i18n message localepreText
- any text before <fmt> tag inside parent XML elementpostText
- any text after <fmt> tag inside parent XML elementsource
- source where <fmt> tag was met, seeLocaleMessageSourceEnum
for possible values.sourceFilename
- source filename if source is a file- Returns:
- i18n message text
-