Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 967 invoked from network); 22 Mar 2004 08:17:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Mar 2004 08:17:03 -0000 Received: (qmail 47574 invoked by uid 500); 22 Mar 2004 08:16:39 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 47363 invoked by uid 500); 22 Mar 2004 08:16:38 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 47340 invoked from network); 22 Mar 2004 08:16:37 -0000 Received: from unknown (HELO fep02-app.kolumbus.fi) (193.229.0.44) by daedalus.apache.org with SMTP; 22 Mar 2004 08:16:37 -0000 Received: from [80.186.83.191] by fep02-app.kolumbus.fi with ESMTP id <20040322081648.MAZ5607.fep02-app.kolumbus.fi@[80.186.83.191]> for ; Mon, 22 Mar 2004 10:16:48 +0200 Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <405B648E.60606@che-che.com> References: <405B648E.60606@che-che.com> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <442628A7-7BD9-11D8-9F85-000393BD5B24@kolumbus.fi> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Sjur_N=F8rsteb=F8_Moshagen?= Subject: Re: [I18n] Alternatives locales for a given page. Date: Mon, 22 Mar 2004 10:16:48 +0200 To: forrest-dev@xml.apache.org X-Mailer: Apple Mail (2.613) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N P=E5 19. mar. 2004 kl. 23.22 skrev Juan Jose Pablos: > I just add some code to the SVN that display all available languages =20= > for a given resource. > > To see it working do this: > > set properties.i18n=3Dtrue > forrest run > > On the browser: > i18n-index.html > > so It displays all alternatives languages for that resource. > > well you need to create: > > index_es.xml > index_en.xml > > to work. > > Let me know if that is what you got in mind. Tried with a fresh seed, based on svn-release 9637. Removed all the =20 samples from the seeded site, and created index_en.xml index_es.xml from index.xml Turned on project.i18n=3Dtrue No other changes. Forrest complained about a missing index_no.xml file - don't know why, =20= the seed was placed in a completely separate directory for testing =20 purposes - added it, and the site built just fine. Upon running, and asking for localhost:8888/i18n-index.html, I got the =20= following error: 09:00:25.651 EVENT ERROR (2004-03-22) 09:00.25:635 [access ] =20 (/i18n-index.html) PoolThread-4/CocoonServlet: Internal Cocoon Problem org.apache.cocoon.ProcessingException: Unable to locate resource: =20 languages (key [languages]): =20 org.apache.avalon.framework.component.ComponentException: Unable to =20 locate resource: languages (key [languages]) at =20 org.apache.cocoon.transformation.I18nTransformer.setup(I18nTransformer.j=20= ava:1120) at =20 org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPi=20= peline(AbstractProcessingPipeline.java:410) at =20 org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe=20= line.setupPipeline(AbstractCachingProcessingPipeline.java:652) at =20 org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepare=20= Pipeline(AbstractProcessingPipeline.java:541) at =20 org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process=20= (AbstractProcessingPipeline.java:499) at =20 org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(=20= SerializeNode.java:155) at =20 org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.=20= invokeNodes(AbstractParentProcessingNode.java:84) Sjur