cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Menant" <alan.men...@gmail.com>
Subject Re: Many i18n transformations in sitemap
Date Wed, 08 Aug 2007 07:59:53 GMT
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
>
>

Mime
View raw message