Passing parameters into the message formatter directly from HTML seems more natural than having to inject a 'Messages' interface into the page and add an accessor method for the message any time the number of format parameters is not 0.
Doug > -----Original Message----- > From: Massimo Lusetti [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 28, 2007 2:32 PM > To: Tapestry users > Subject: Re: [T5] Localization > > On 8/28/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > > > If not, does this seem difficult to implement? > > Using normal ResourceBundle features? And doing that inside javacode > where logic belongs? > > -- > Massimo > http://meridio.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >> -----Original Message----- >> From: Christoph Jaeger [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, August 28, 2007 2:13 PM >> To: [email protected] >> Subject: [T5] Localization >> >> Hi, >> >> is there a way to use messages with parameters directly from a HTML >> template? >> >> Something like: >> >> <p>${message:results,prop:numberOfDatasets}</p> >> >> with >> >> Page.java >> >> ... >> public int getNumberOfDatasets() >> { >> return numberOfDatasets; >> } >> ... >> >> Page_en.properties: >> >> results: Found %d datasets. >> >> Page_de.properties: >> >> results: %d Datensätze gefunden. >> >> If not, does this seem difficult to implement? >> >> Thanks, >> >> Best Regards, >> >> Christoph Jäger >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
