Return-Path: X-Original-To: apmail-tapestry-users-archive@www.apache.org Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5A609C3D for ; Wed, 21 Sep 2011 13:33:42 +0000 (UTC) Received: (qmail 12867 invoked by uid 500); 21 Sep 2011 13:33:42 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 12847 invoked by uid 500); 21 Sep 2011 13:33:42 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 12839 invoked by uid 99); 21 Sep 2011 13:33:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 13:33:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 209.85.161.52 is neither permitted nor denied by domain of mailinglist@nesluop.dk) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 13:33:34 +0000 Received: by fxe23 with SMTP id 23so2297671fxe.11 for ; Wed, 21 Sep 2011 06:33:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.58.198 with SMTP id i6mr1070512fah.91.1316611992422; Wed, 21 Sep 2011 06:33:12 -0700 (PDT) Received: by 10.152.43.100 with HTTP; Wed, 21 Sep 2011 06:33:12 -0700 (PDT) X-Originating-IP: [195.5.101.254] In-Reply-To: References: Date: Wed, 21 Sep 2011 15:33:12 +0200 Message-ID: Subject: Re: Translating the cancel button on BeanEditForm From: Chris Poulsen To: Tapestry users Content-Type: multipart/alternative; boundary=0015174481781d8aad04ad739ea3 --0015174481781d8aad04ad739ea3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 --=20 Chris On Wed, Sep 21, 2011 at 3:23 PM, Sigbj=F8rn Tvedt wro= te: > Hi. > I tried to translate the cancel button on a BeanEditForm by supplying the > translation "cancel-label=3DAvbryt" in my app.properties, but this does n= ot > seem to work. > I had a look at the source tml for the BeanEditForm, and I see that the > cancel button are written as > > > 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=F8rn Tvedy > --0015174481781d8aad04ad739ea3--