You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "JACOB, ERIC" <er...@bell.ca> on 2004/07/20 14:01:55 UTC
Coplet internationalization (new Portal Engine)
Hi,
I'm trying to internationalize my portal (in fact, my coplets). I added the
i18n transformer in the sitemap like this:
...
<map:transformer name="i18n" logger="sitemap.transformer.i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="messages">
<catalogue id="messages" name="messages" location="translations">
<location>translations</location>
</catalogue>
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
...
I also put the i18n tags in the coplet-data xml file (cause I want to
internationalize the coplet title):
<coplets xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
...
<coplet-data id="YahooNewsTopStories" name="standard">
<title><i18n:text>YahooNewsTitle</i18n:text></title>
<coplet-base-data>URICoplet</coplet-base-data>
<attribute>
<name>uri</name>
<value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">cocoon:/coplets/news/l
ive.rss-0.91?feed=http://rss.news.yahoo.com/rss/topstories</value>
</attribute>
...
</coplet-data>
...
</coplets>
Finally, I created my catalogues:
<catalogue xml:lang="en">
<message key="YahooNewsTitle">Yahoo! News - Top Stories</message>
...
</catalogue>
Now, I don't know in which pipeline to use the transformer for the new
Portal Engine. Any ideas?
Thanks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org