You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Goetz Botterweck <bo...@uni-koblenz.de> on 2001/03/21 12:01:01 UTC
Multilanguage Website, Automatic Links
I'd like to create a multilanguage website. I plan to have different XML files for the different language-versions of a document (e.g. doc.en.xml doc.fr.xml doc.de.xml).
If doc.en.xml is requested the server should check for the existence of the related files in other languages (doc.fr.xml doc.de.xml) and insert links ("this page in French") accordingly.
What is the best way to do this -- with Cocoon of course :-)
Thanks for any hints.
GB
Re: Multilanguage Website, Automatic Links
Posted by "Marcelo F. Ochoa" <mo...@ieee.org>.
Goetz Botterweck wrote:
> I'd like to create a multilanguage website. I plan to have different XML
> files for the different language-versions of a document (e.g. doc.en.xml
> doc.fr.xml doc.de.xml).
>
>
>
> If doc.en.xml is requested the server should check for the existence of
> the related files in other languages (doc.fr.xml doc.de.xml) and insert
> links ("this page in French") accordingly.
>
>
>
> What is the best way to do this -- with Cocoon of course :-)
>
>
>
> Thanks for any hints.
>
> GB
Uses a Content Management System like DB Prism / Cocoon CMS.
It includes in the data model a column for storing a languaje of the document, then with a simple
decision about, for example the header tag Accept-Languaje of the browser, the CMS return the appropiate
document for the target languaje.
Obviusly this CMS is oriented to Oracle Databases, but for production sites the documents are generated
in diferents directories, as an snapshot of the site, and its possible to upload to any internet provider.
Best regards, Marcelo.
--
Marcelo F. Ochoa - mochoa@ieee.org
Do you Know DB Prism? Look @ http://www.plenix.com/dbprism/
More info?
Chapter 21 of the book "Professional XML Databases" (Wrox Press
http://www.wrox.com/)
Chapter 8 of the book "Oracle & Open Source" (O'Reilly
http://www.oreilly.com/)
-----------------------------------------------
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-444430 Fax: +54-2293-444431
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Multilanguage Website, Automatic Links
Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 21 Mar 2001, Goetz Botterweck wrote:
> I'd like to create a multilanguage website. I plan to have different
> XML files for the different language-versions of a document (e.g.
> doc.en.xml doc.fr.xml doc.de.xml).
>
> If doc.en.xml is requested the server should check for the existence
> of the related files in other languages (doc.fr.xml doc.de.xml) and
> insert links ("this page in French") accordingly.
>
> What is the best way to do this -- with Cocoon of course :-)
c1 or c2? if c1, i'd write a custom producer that extends ProducerFromFile
and does the custom language file checking. if c2, i'd mail cocoon-dev
and/or troll the archives.
- donald
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>