Actually I added one line after the locale in my logon action class
and it does show that the locale is zh_CN. but the page it shows
is still in English. Here is the first three lines of code in perform()
-------
   Locale locale = getLocale(request);
    System.out.println(locale.toString());

    MessageResources messages = getResources();

-------

   I think that there must be something else I am missing. I did make sure
that
I have two files ApplicationResources.properties and
ApplicationResources_zh_CN.properties in
the same directory. Do I need to do anything in struts-config.xml to support
multi-lingual?



Thanks,

Yibing

-----Original Message-----
From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 11:36 AM
To: Struts Users Mailing List
Subject: RE: Multi-Lingual support


> Hi, Guys,
>
>     I followed exactly the suggestions of setting up the
> languagues in the browser
> but no progress at all. Anything else i can do?

In your JSP pages / action classes, check what's
the locale set in the session object.

        session.getAttribute( Action.LOCALE );

                                -TPP


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to