I solved it using t:format. That I think fits better. Here is my snapped code:
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) { if (obj instanceof Boolean) { if (((Boolean) obj).booleanValue()) { String r = messagesSource.getValidationMessages( _currentLocale).get("yesno-yes"); return new StringBuffer(r); } else { String r = messagesSource.getValidationMessages( _currentLocale).get("yesno-no"); return new StringBuffer(r); } } return new StringBuffer("indefined"); } I forgot to said that I am using T 5.0.16. regards, Lucas On Mon, Nov 24, 2008 at 10:44 AM, Lucas Silva <[EMAIL PROTECTED]> wrote: > Hi, I tried to inject Messages in the YesNoTranslator, but it didn't > work. So I need help, how can I use an internationalized > t:translate="yesno" ? An example that I am using: > > private String name; > private Boolean admin; > > and I use t:beaneditform and t:beandisplay in the .tml files. > > I want to show it as a checkbox in the form > and as a text from the TranslationMessages.properties. > > regards, > Lucas > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]