Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 38572 invoked from network); 8 Aug 2007 08:00:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 08:00:28 -0000 Received: (qmail 33606 invoked by uid 500); 8 Aug 2007 08:00:21 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33554 invoked by uid 500); 8 Aug 2007 08:00:21 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 33542 invoked by uid 99); 8 Aug 2007 08:00:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 01:00:21 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alan.menant@gmail.com designates 209.85.134.191 as permitted sender) Received: from [209.85.134.191] (HELO mu-out-0910.google.com) (209.85.134.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 08:00:15 +0000 Received: by mu-out-0910.google.com with SMTP id w8so118460mue for ; Wed, 08 Aug 2007 00:59:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=k0Znr8/2OhG7dsKES9um7f3A4w7pI1UHTbasXMM9gNGy1MWbl/adS7bL5J8hNw8ieTbjdeVVv7YDgiAKOg51q1soeokmHPGvL1yksFwR3B/Lnhlyp2UvCHilCdEG6XX/xZ3JRXU0gcEBQ12GHOMFiPzl+hZS947anwAZF3+m3Os= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LSquOYI17OWieCgaE1z0yT0beNZySsGmRIzCg86lCQspJx0rTsA6BtqPWhX7WnlAfj/PZPXZsT1aq+3+IdUbL5gurXGGEC8J9QtwQeHX5vQ4h0EbP9UUy0c2kHwZGy6mt1jR9Kngw6wvvTq91o6SHDmJGatpIqzpB0Dc8dr0r8I= Received: by 10.86.77.5 with SMTP id z5mr507929fga.1186559993289; Wed, 08 Aug 2007 00:59:53 -0700 (PDT) Received: by 10.86.76.13 with HTTP; Wed, 8 Aug 2007 00:59:53 -0700 (PDT) Message-ID: Date: Wed, 8 Aug 2007 09:59:53 +0200 From: "Alan Menant" To: users@cocoon.apache.org Subject: Re: Many i18n transformations in sitemap In-Reply-To: <9d43828782b380e6006661d511e430f0@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20323_7781553.1186559993281" References: <9d43828782b380e6006661d511e430f0@localhost> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20323_7781553.1186559993281 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/8/7, Jason Johnston : > > On Tue, 7 Aug 2007 11:00:11 +0200, "Alan Menant" > wrote: > > Hello, > > I was looking for a way to apply many i18n transforms in a pipeline. > > > > Here is my catalog definition : > ... > > On my home page, I need to internationalize elements that are in both > home > > and buttons catalogs. I tried may ways to do this : > ... > > But each time, I get either buttons or home elements traducted (from > only > > one catalog). > > Is it possible to apply two or more i18n transformations in a match ? > > Maybe by specifying explicitely which catalog to use ? > > Yes, you can specify which catalogue should be used to translate each i18n > key: > > key.from.home > key.from.buttons > > ...or if using attribute translation: > > > > > See the I18nTransformer documentation also since it covers this: > http://cocoon.apache.org/2.1/userdocs/i18nTransformer.html > > --Jason Ok thanks again Jason. Alan --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > ------=_Part_20323_7781553.1186559993281 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/8/7, Jason Johnston <cocoon@lojjic.net>:
On Tue, 7 Aug 2007 11:00:11 +0200, "Alan Menant" <alan.menant@gmail.com>
wrote:
> Hello,
> I was looking for a way to apply many i18n transforms in a pipeline.
>
> Here is my catalog definition :
...
> On my home page, I need to internationalize elements that are in both
home
> and buttons catalogs. I tried may ways to do this :
...
> But each time, I get either buttons or home elements traducted (from only
> one catalog).
> Is it possible to apply two or more i18n transformations in a match ?
> Maybe by specifying explicitely which catalog to use ?

Yes, you can specify which catalogue should be used to translate each i18n
key:

<i18n:text i18n:catalogue="home">key.from.home</i18n:text>
<i18n:text i18n:catalogue="buttons">key.from.buttons</i18n:text>

...or if using attribute translation:

<someelement someattr="home:key.from.home" i18n:attr="someattr" />
<someelement someattr="buttons:key.from.buttons" i18n:attr="someattr" />

See the I18nTransformer documentation also since it covers this:
http://cocoon.apache.org/2.1/userdocs/i18nTransformer.html

--Jason


Ok thanks again Jason.

Alan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


------=_Part_20323_7781553.1186559993281--