2007/8/7, Jason Johnston <[EMAIL PROTECTED]>: > > On Tue, 7 Aug 2007 11:00:11 +0200, "Alan Menant" <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
