public interface LocaleMessageProvider
LocaleMessageProviderRegistry
to register custom providers.Modifier and Type | Method and Description |
---|---|
java.lang.String | getMessage(java.lang.String key, java.util.Locale locale, java.lang.String preText, java.lang.String postText, LocaleMessageSourceEnum source, java.lang.String sourceFilename) Will be called by framework when evaluating i18n message (<fmt> tag). |
java.lang.String getMessage(java.lang.String key, java.util.Locale locale, java.lang.String preText, java.lang.String postText, LocaleMessageSourceEnum source, java.lang.String sourceFilename)
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, see LocaleMessageSourceEnum
for possible values.sourceFilename
- source filename if source is a file