Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 33013 invoked from network); 11 Sep 2008 14:53:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 14:53:02 -0000 Received: (qmail 71349 invoked by uid 500); 11 Sep 2008 14:52:57 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71300 invoked by uid 500); 11 Sep 2008 14:52:57 -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 Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 36207 invoked by uid 99); 11 Sep 2008 11:41:37 -0000 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 jdutete@gmail.com designates 64.233.182.190 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=3O6zOATT7im2hqo6ebv4fbwpRcLJcmde4eeEW5q2r9k=; b=TABTbK5eZrWxIaYDUKInV2jBoitngZToZ00tkTkYVVNajZC3fxRzVm8QhVBBsY4zMF UyZIKvpFXcsyB5MV4w947EdUEZltSmQ6n0VxXwHiN/kUgDWg5ebZGgbuIe7C+4bqvblV 39aVoyhANSgVaOlpFMY3ocW7s7WFGRoQeWELo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=CGeaoAP1UqLd4dS7vdFZPJ6sfSNK0fL7R+3IgLw4HlQ+bI7UEzQ5LW2eydh8eqpEPC L0jddLEPg7XD12XCck2P1vthgac+Qt51eE9OABaN6BDtJUUimStq1x74dl5CfvOGNfTN 8yN3bYqyyFjnWQ0llXToPO2lo11gEXtWB2M8A= Message-ID: Date: Thu, 11 Sep 2008 13:41:10 +0200 From: "Justice Utete" To: users@cocoon.apache.org Subject: Problem with Cocoon i18n MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_60762_18648205.1221133270975" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_60762_18648205.1221133270975 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm having problems with cocoon internationalisation. The following are snippets of my code: Portion of the sitemap: true untranslated text! *Note: actions/translations is in the same folder as the sitemap* .. and then the pipeline for the page: The xsl page to be transformed has the following: key1 and in my messages xml file I have: Message for Key 1 Message for Key 2 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? Regards, Justice ------=_Part_60762_18648205.1221133270975 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

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" src="org.apache.cocoon.transformation.I18nTransformer">
        <catalogues default="messages">
            <catalogue id="messages" name="messages" location="actions/translations"/>
        </catalogues>
        <cache-at-startup>true</cache-at-startup>
        <untranslated-text>untranslated text!</untranslated-text>
    </map:transformer>
</map:transformers>

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:transform>
    <map:serialize type="html"/>
</map:match>

The xsl page to be transformed has the following:
    <i18n:text>key1</i18n:text>

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>
</catalogue>

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?


Regards,

Justice
------=_Part_60762_18648205.1221133270975--