cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <KPiroum...@flagship.ru>
Subject Re: Internationalization and Cocoon
Date Fri, 20 Oct 2000 10:41:23 GMT
I was thinking of using different stylesheets for different languages.
But the work to be done if modifications are needed multyplied to the number
of languages.

Now I use another approach - all international data I store in an XML file
(some kind of a repository) and
get needed data with a logicsheet (XSP) then I use a single stylesheet to
format the page.
But I think that for some "extravagant" languages (locales) a separate
stylesheet will be needed:
for right-to-left languages (Arabic, some Hebrew langs), Chinese, Japanese,
etc.

In any case, I am agree with you, this is a complex problem.

----- Original Message -----
From: "Eric SCHAEFFER" <eschaeffer@posterconseil.com>
To: <cocoon-users@xml.apache.org>
Sent: 20 ??????? 2000 ?., ??????? 14:29
Subject: Re: Internationalization and Cocoon


> For internationalization, I use a different (formatting stylesheet, not a
> logicsheet) stylesheet for every language (that is set dynamically), and
> data is the same (from database).
>
> Number formatting, and other language specific formatting operations are
> performed by Xalan extensions.
>
> The problem of internationalization is maybe more complex than translating
> some data. The page aspect can also change: you don't use the same colors
or
> organize the page content the same way for US people or european ones.
>
> Internationalization is really a great problem, and I'd really like to
know
> how others have solved it.
>
> Eric.
>
> ----- Original Message -----
> From: "Konstantin Piroumian" <KPiroumian@flagship.ru>
> To: <cocoon-users@xml.apache.org>
> Sent: Friday, October 20, 2000 10:48 AM
> Subject: Internationalization and Cocoon
>
>
> > Hi, all!
> > I am working on a multi-language project and investigating the best ways
> of
> > implementing it.
> > I would be very thankfull for any good ideas and opinions in this area.
> > The site will consist of a lot of pages and every page must be displayed
> in
> > 5 and more languages.
> > The language can be changed at any moment.
> >
> > The tasks are:
> > 1. To determine the current language (from session) on every page.
> > 2. Set the correct language for XSL processing and correct encoding in
the
> > response.
> > 3. To change the current language in accordance to the user request.
> >
> > To add this functionality to every page I decided to make my own Taglib
> and
> > a stylesheet to add Java code to every page which will determine the
> current
> > language (from the session) and add an attribute to my root element:
> >
> > <page>
> >   <xsp:attribute name="lang"><xabs:get-current-lang/></xsp:attribute>
> > ...
> > </page>
> >
> > Then the XSL will look at the attribute value and get international data
> > from a xml file.
> > Also I will need to set the response's Content Type to display the page
> > correctly.
> > For that I can also use my own tag lib's stylesheet.
> >
> > Anothar aproach can be to map all requests to a single page or a servlet
> > which will redirect requests to the appropriate page (if I had a
separate
> > page for every language) or add a request param (lang=en).
> >
> > Are there any other possibilities to add a common functionality to all
> > pages?
> > Before Cocoon I was programming in pure Java (something like Cocoon, but
> > less flexible) and I had a parent class for all pages which was
providing
> > all common functionality.
> >
> > I would like to hear your opinions on this subject.
> > Thank you for your attention.
> >
> > Best regards,
> > ----------------------------------------------------------------------
> > Konstantin Piroumian
> > Software engineer
> >
> > Protek Flagship LLC
> > Phone: + 7 095 795 0520 (add. 1288)
> > Fax: + 7 095 795 0525
> > E-mail: kpiroumian@flagship.ru
> > http://www.protek.com
> > ----------------------------------------------------------------------
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> 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