cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Mills" <pyrami...@yahoo.com>
Subject Re: Internationalization
Date Wed, 02 May 2001 14:44:46 GMT
Could you not use a stylesheet?  The stylesheet goes through and replaces
your tags with the international strings, and then you continue on as
normal.  This has the added benifit of allowing you to change word order if
needed. And it would keep everything in XML.

i.e.  "<hello />" could be replaced with "Hello, <fname />".

Anthony


----- Original Message -----
From: "Pablo Bendersky" <pbendersky@itineri.com>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, May 02, 2001 9:25 AM
Subject: RE: Internationalization


> Sorry for the silly question, I'm new using cocoon.
> How do you write a taglibrary ?
>
> Thanks a lot.
>
> -----Mensaje original-----
> De: Oskar Werewka [mailto:ow5@poczta.onet.pl]
> Enviado el: Miercoles, 02 de Mayo de 2001 11:19 a.m.
> Para: cocoon-users@xml.apache.org
> Asunto: Re: Internationalization
>
>
>
> It is a good question, how to develop multilingual sites (applications?)
>
> I have got something like this:
>
> - all strings in a database
> - taglibrary which inserts to my XML doc this:
>
> <labels>
> <label id="1">Process</label>
> <label id="2">Status</label>
> <label id="3">Worker</label>
> <label id="4">Client</label>
> </labels>
>
> - and then in my xsl I use this templates:
>
> <xsl:value-of select="/page/labels/label[@id='1']"/>
>
> - to get the label
>
> It works, but I would like to know how to do it better.
> I want to have labels in db because I have developed some
> application to add a new language version to the application.
> And I also have language dependent configuration tabels.
>
> >Hello !
> >I'm trying to find the best way to implement a site in multiple languajes
> >using cocoon.
> >
> >I had one idea, which was to include on every XML file a section like
> ><strings>
> >         <string1>hello</string1>
> ></strings>
> >
> >and this... So the generated XML would depend on the languaje selected by
> >the user.
> >
> >Is it the best way to do it ? I think it's not because I'm not separating
> in
> >a whole way content from presentation, because the strings used for a
html
> >page can differ from the strings needed for a pdf file.
> >
> >Thanks a lot for your ideas.
> >
> >         Pablo Bendersky
> >         pbendersky@itineri.com
> >
> >
> >---------------------------------------------------------------------
> >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: <cocoon-users-unsubscribe@xml.apache.org>
> >For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
>
> --
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message