You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hong Gia Dinh <hg...@sdcgrp.com> on 2002/11/27 10:54:29 UTC

i18n more!!

I 'm a new user in cocoon, 
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose?
can u all tell me?
cheers
GD

Re: i18n more!!

Posted by Konstantin Piroumian <kp...@apache.org>.
i18n more!!Take a look at the LocaleAction.
It provides mechanism for setting user's locale for a session, request, in a
cookie. And it uses either request parameter or the client's locale or a
cookie to determine selected locale for the first time.

See
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/LocaleAction.h
tml for more.

Konstantin

----- Original Message -----
From: Hong Gia Dinh
To: cocoon-users@xml.apache.org
Sent: Wednesday, November 27, 2002 12:54
Subject: i18n more!!


I 'm a new user in cocoon,
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose?
can u all tell me?
cheers
GD


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: i18n more!!

Posted by Kavitha Ramesh <ka...@yahoo.com>.
hi GD,

If you want to get a good idea about i18n, go to the
welcome page of your cocoon(after cocoon installation,
 go to the url, http://localhost:8080/cocoon), you
have a title Internationalization.Click the link and
explore.Also in your cocoon directory you will have a
folder i18n, explore that too.

In your case you should have messages.xml(for english)
and messages_fr (for french).In the browser go to the
menu Extras-Internet options-Language-Choose French
and bring the French language above all the other
languages and click OK button.Your pages will have all
the messages in French.

Have Fun!

Kavitha.


--- Hong Gia Dinh <hg...@sdcgrp.com> wrote:
> I 'm a new user in cocoon, 
> I have the case :
> i have a web site trying to apply cocoon into it.
> i have 2 languages, english and french
> now if in one page i choose a language such as
> 'french' i want all next page
> from that on will be in french. how can i do that?
> how can i know the current language i chose?
> can u all tell me?
> cheers
> GD
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>