Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 51519 invoked from network); 12 Mar 2005 20:01:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Mar 2005 20:01:41 -0000 Received: (qmail 37278 invoked by uid 500); 12 Mar 2005 20:01:40 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 36938 invoked by uid 500); 12 Mar 2005 20:01:39 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 36925 invoked by uid 99); 12 Mar 2005 20:01:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from um0007.unimaas.nl (HELO um0007.unimaas.nl) (137.120.1.7) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 12 Mar 2005 12:01:38 -0800 Received: by um0007.unimaas.nl (Postfix, from userid 3003) id B8C49C084; Sat, 12 Mar 2005 21:01:35 +0100 (CET) Received: from um-mail0139.unimaas.nl (um-mail0139.unimaas.nl [137.120.1.139]) by um0007.unimaas.nl (Postfix) with ESMTP id 66BD4C04A for ; Sat, 12 Mar 2005 21:01:33 +0100 (CET) Received: from um-mail0136.unimaas.nl ([137.120.1.136]) by um-mail0139.unimaas.nl with Microsoft SMTPSVC(6.0.3790.211); Sat, 12 Mar 2005 21:01:26 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: CForms samples for 2.1.7 - i18n question Date: Sat, 12 Mar 2005 21:01:36 +0100 Message-ID: <329A68716B57D54E8D39FD3F8A4A84DF016A44EE@um-mail0136.unimaas.nl> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CForms samples for 2.1.7 - i18n question Thread-Index: AcUnNb3z2sS2qkDDTVK72iIfRyorHAABFhjw From: "Linden H van der (MI)" To: X-OriginalArrivalTime: 12 Mar 2005 20:01:26.0715 (UTC) FILETIME=[4614C8B0:01C5273E] X-UM-Spam-DCC: SPAMCHECK.NET: um0007 1168; Body=1 Fuz1=1 Fuz2=1 X-UM-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on um0007.unimaas.nl X-UM-Spam-Level: X-UM-Spam-Status: No, score=-4.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.1 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Bertrand et Sylvain, Right now, no i18n works. In core.log I find lines like: INFO (2005-03-12) 20:24.05:156 [core.i18n-bundles] = (/samples/blocks/cssforms/form1.flow) = PoolThread-3/XMLResourceBundleFactory: Resource not found: = OtherMessages, locale: nl_BE, bundleName: = file:/D:/svn/cocoon/build/webapp/samples/blocks/cssforms/messages/OtherMe= ssages_nl_BE.xml. Exception: = org.apache.cocoon.ResourceNotFoundException: Resource not found.: = org.apache.excalibur.source.SourceNotFoundException: = file:/D:/svn/cocoon/build/webapp/samples/blocks/cssforms/messages/OtherMe= ssages_nl_BE.xml doesn't exist. INFO (2005-03-12) 20:24.05:812 [core.i18n-bundles] = (/samples/blocks/cssforms/form1.flow) PoolThread-3/XMLResourceBundle: = Resource update failed. OtherMessages, locale: nl Exception: Resource = not found. INFO (2005-03-12) 20:24.49:031 [core.i18n-bundles] = (/samples/blocks/cssforms/form1.flow) PoolThread-4/XMLResourceBundle: = Resource update failed. OtherMessages, locale: nl Exception: Resource = not found. INFO (2005-03-12) 20:25.54:421 [core.i18n-bundles] = (/samples/blocks/cssforms/form1.flow) PoolThread-4/XMLResourceBundle: = Resource update failed. OtherMessages, locale: nl Exception: Resource = not found. INFO (2005-03-12) 20:27.33:968 [core.i18n-bundles] = (/samples/blocks/cssforms/form1.flow) PoolThread-4/XMLResourceBundle: = Resource update failed. OtherMessages, locale: nl Exception: Resource = not found. In /samples/blocks/cssforms/messages I have the usual set of messages. = IIUC nl_BE should default to nl and en_US should default to = FormsMessages.xml. Are these messages correct? This is my pipeline: Right now I get the i18n keys (i.e. 'firstname' instead of 'First = Name'). However, the error messages are translated correctly, i.e. the = defaults as available in /samples/blocks/forms/messages are translated, = while my extended set (cssforms is merely a copy of = /samples/blocks/forms) are ignored. Since I get the correct language, I assume the first i18n works = correctly. The second doesn't work, since I introduce a key calendar.alt for = calendar image alt attribute and that's still there. In the page source I find this: email.help
(below in English only)
And if you do not know what email address is, then well, = chances are that you do not have it. However, if you have access to the = Internet, you can easily get yourself one!
Which is the result of: email.help
(below in English only)
And if you do not know what email address is, then well, = chances are that you do not have it. However, if you have access to the = Internet, you can easily get yourself one!
.....
So I suppose I have 2 or 3 problems here: 1. my extended messages are not read (I even moved away the original = forms directory and restarted Jetty). 2. I get that weird namespace (maybe related), this is already present = in label=3D"debug3". 3. my second i18n doesn't work, which I can't verify due to error 2. :-( Bye, Helma > -----Original Message----- > From: Bertrand Delacretaz [mailto:bdelacretaz@apache.org]=20 > Sent: Saturday, 12 March 2005 20:00 > To: dev@cocoon.apache.org > Subject: Re: CForms samples for 2.1.7 - i18n question >=20 >=20 > Le 12 mars 05, =E0 19:01, Linden H van der (MI) a =E9crit : >=20 > > ...I've managed to get the i18n for the flowscript samples=20 > to work, by > > moving around the i18n transformer. However, I haven't succeeded in > > properly translating i18n info that is introduced in the > > forms-*-styling.xsl files. It seems impossible to add the i18n > > transformer a second time... >=20 > Why not twice? I think you need to use it twice, IIRC because the=20 > forms-styling stuff eats the i18n namespace: >=20 > I've been doing stuff like >=20 > > > > > > >=20 > -Bertrand >=20