tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Poulsen <mailingl...@nesluop.dk>
Subject Re: Translating the cancel button on BeanEditForm
Date Wed, 21 Sep 2011 13:33:12 GMT
Hi,

I think the message binding is correct (and probably more correct than the
${ } expansion).

You should probably try to provide your translation in the same
package/properties file as the component originally uses. - I think the
app.properties are only used if no more specific definition is found (and
the default definition for the the component is probably more specific than
the app module).

HTH

-- 
Chris

On Wed, Sep 21, 2011 at 3:23 PM, Sigbjørn Tvedt <sigbjornt@gmail.com> wrote:

> Hi.
> I tried to translate the cancel button on a BeanEditForm by supplying the
> translation "cancel-label=Avbryt" in my app.properties, but this does not
> seem to work.
> I had a look at the source tml for the BeanEditForm, and I see that the
> cancel button are written as
>     <t:submit t:id="cancel" mode="cancel" value="message:cancel-label"/>
>
> Are the value supposed to be "message:cancel-label"? Would not
> ${message:cancel-label} be the correct way of referencing the message
> catalog in a component? (Palette.tml uses this for the alt messages)
>
> Regards
>
> Sigbjørn Tvedy
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message