cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justice Utete" <>
Subject Problem with Cocoon i18n
Date Thu, 11 Sep 2008 11:41:10 GMT

I'm having problems with cocoon internationalisation.

The following are snippets of my code:

Portion of the sitemap:

<map:transformers default="xslt">
    <map:transformer name="i18n" logger="sitemap.transformer.i18n"
        <catalogues default="messages">
            <catalogue id="messages" name="messages" location="*
        <untranslated-text>untranslated text!</untranslated-text>

*Note: actions/translations is in the same folder as the sitemap*

.. and then the pipeline for the page:

<map:match pattern="*.htm">
    <map:generate type="UserRequest"/>
    <map:transform src="{1}.xsl"/>
    <map:transform type="i18n">
        <map:parameter name="locale" value="{locale}"/>
    <map:serialize type="html"/>

The xsl page to be transformed has the following:

and in my messages xml  file I have:

<?xml version="1.0" encoding="UTF-8"?>
<catalogue xml:lang="en">
    <message key="key1">Message for Key 1</message>
    <message key="key2">Message for Key 2 </message>

However when i access  the page it displays "key1" instead of the value for
key1 which is "Message for Key 1".
Whats is the problem with the above?



View raw message