public class I18nStringTemplateModel extends Object implements freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateScalarModel
${string} ==> "His name is {0}!"
${string("Bozo")} ==> "His name is Bozo!"
Note that the format of the message is determined by java.text.MessageFormat,
so argument indices start at 0 and you can escape a substring by wrapping it
in apostrophes.| Constructor and Description |
|---|
I18nStringTemplateModel(String bundleName,
String key,
String textString) |
public String getAsString() throws freemarker.template.TemplateModelException
getAsString in interface freemarker.template.TemplateScalarModelfreemarker.template.TemplateModelExceptionCopyright © 2022. All rights reserved.