1. Pass ComponentMessagesSource and ThreadLocale to the YesNoTranslator
constructor
2.
public String toClient(Boolean flag) {
Messages messages =
messagesSource.getApplicationCatalog(threadLocale.getLocale());
return (flag ? messages.get("boolean.true") :
messages.get("boolean.false");
}
3. Add entries for boolean.true and boolean.false for your languages to your
root application message catalogues
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Translator-with-Localized-texts-tp5717981p5717983.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]