You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Yibing Li <yl...@gnxchange.com> on 2002/04/18 16:42:28 UTC
RE: Multi-Lingual support
Actually without solving this problem, I am thinking the next question:
Usually in the first page, the application can provide a drop-down
list for many different language selection, once it is selected, all the pages
will be shown in that language. How will this feature be included using
struts?
Thanks,
Yibing
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: 2002Äê4ÔÂ18ÈÕ 10:32
To: Struts Users Mailing List; o.refle@gmx.de
Subject: RE: Multi-Lingual support
Sorry my fault, also in ie you can define the locale in your settings
extras-options-languages
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: Thursday, April 18, 2002 4:29 PM
To: Struts Users Mailing List; yli@gnx.com
Subject: RE: Multi-Lingual support
Normally this should work, and your default locale is
defined by your browser version, e.g german ie germany locale
french ie french locale.
Olli
-----Original Message-----
From: Yibing Li [mailto:yli@gnxchange.com]
Sent: Thursday, April 18, 2002 4:26 PM
To: o.refle@gmx.de; Struts Users Mailing List
Subject: RE: Multi-Lingual support
The resource files all have the same list of the keys but different contents. Right? e.g.
<title>
<bean:message key="index.title"/>
</title>
In my resource file, there is a line of:
index.title=Testing Struts
In my chinese resource file, there is a line of:
index.title=证实 struts
So is this correct?
Thanks,
Yibing
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: Thursday, April 18, 2002 10:08 AM
To: Struts Users Mailing List; yli@gnx.com
Subject: RE: Multi-Lingual support
Have you implemented the localization on your pages correctly ??
e.g.
<bean:message key="blabla"/>
Are the keys correct to your applicationRessources.properties file ?
Oliver
-----Original Message-----
From: Yibing Li [mailto:yli@gnxchange.com]
Sent: Thursday, April 18, 2002 4:02 PM
To: struts-user@jakarta.apache.org
Subject: Multi-Lingual support
Folks,
I thought one major advantage of using struts is its support form
multi-linguage.
We have built an application using Model 2. Since we need to extend the
application to
support 7 different languages, I would like to rewrite the application using
struts.
With my limited knowledge on struts, I was not able to do a proof of
concept. Here is
what I did:
1. have ApplicationResources.properties as English property file.
2. prepare a resource file for each language, in the case of Chinese, it
is
ApplicationResources_zh_CN.properties in the same directory, with the
content
translated to Chinese
3. Set init parameter of locale to true for ActionServlet
4. Start the server
5. Reset the locale of a computer
6. Browse the application
However, what I see is still in English.
Do I miss anything? Please help.
If you could point to some sample application to demo its multi-lingual
support,
it would be very helpful.
Thanks,
-----
Yibing Li, Ph.D.
Technical Architect
Development and Integration
GlobalNetXChange LLC
703-673-2159 (o)
571-436-5592 (c)
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Multi-Lingual support
Posted by Marcelo Vanzin <va...@rededc.com.br>.
Yibing Li wrote:
> Usually in the first page, the application can provide a drop-down
> list for many different language selection, once it is selected, all the pages
> will be shown in that language. How will this feature be included using
> struts?
Change the object in the HttpSession under the Action.LOCALE_KEY (this is
a constant in the Action class, not a string itself) key to be an
instance of the desired locale.
--
[]'s
Marcelo Vanzin
Touch Tecnologia
vanza@rededc.com.br
"Life is too short to drink cheap beer"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Multi-Lingual support
Posted by Oliver Reflé <o....@gmx.de>.
you can set the locale depending on the selection of the user. Just put it in the session with
request.getSession().setAttribute(Action.Locale,myLocale)
-----Original Message-----
From: Yibing Li [mailto:yli@gnxchange.com]
Sent: Thursday, April 18, 2002 4:42 PM
To: 'Struts Users Mailing List'; struts-dev@jakarta.apache.org
Subject: RE: Multi-Lingual support
Actually without solving this problem, I am thinking the next question:
Usually in the first page, the application can provide a drop-down
list for many different language selection, once it is selected, all the pages
will be shown in that language. How will this feature be included using
struts?
Thanks,
Yibing
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: 2002Äê4ÔÂ18ÈÕ 10:32
To: Struts Users Mailing List; o.refle@gmx.de
Subject: RE: Multi-Lingual support
Sorry my fault, also in ie you can define the locale in your settings
extras-options-languages
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: Thursday, April 18, 2002 4:29 PM
To: Struts Users Mailing List; yli@gnx.com
Subject: RE: Multi-Lingual support
Normally this should work, and your default locale is
defined by your browser version, e.g german ie germany locale
french ie french locale.
Olli
-----Original Message-----
From: Yibing Li [mailto:yli@gnxchange.com]
Sent: Thursday, April 18, 2002 4:26 PM
To: o.refle@gmx.de; Struts Users Mailing List
Subject: RE: Multi-Lingual support
The resource files all have the same list of the keys but different contents. Right? e.g.
<title>
<bean:message key="index.title"/>
</title>
In my resource file, there is a line of:
index.title=Testing Struts
In my chinese resource file, there is a line of:
index.title=证实 struts
So is this correct?
Thanks,
Yibing
-----Original Message-----
From: Oliver Reflé [mailto:o.refle@gmx.de]
Sent: Thursday, April 18, 2002 10:08 AM
To: Struts Users Mailing List; yli@gnx.com
Subject: RE: Multi-Lingual support
Have you implemented the localization on your pages correctly ??
e.g.
<bean:message key="blabla"/>
Are the keys correct to your applicationRessources.properties file ?
Oliver
-----Original Message-----
From: Yibing Li [mailto:yli@gnxchange.com]
Sent: Thursday, April 18, 2002 4:02 PM
To: struts-user@jakarta.apache.org
Subject: Multi-Lingual support
Folks,
I thought one major advantage of using struts is its support form
multi-linguage.
We have built an application using Model 2. Since we need to extend the
application to
support 7 different languages, I would like to rewrite the application using
struts.
With my limited knowledge on struts, I was not able to do a proof of
concept. Here is
what I did:
1. have ApplicationResources.properties as English property file.
2. prepare a resource file for each language, in the case of Chinese, it
is
ApplicationResources_zh_CN.properties in the same directory, with the
content
translated to Chinese
3. Set init parameter of locale to true for ActionServlet
4. Start the server
5. Reset the locale of a computer
6. Browse the application
However, what I see is still in English.
Do I miss anything? Please help.
If you could point to some sample application to demo its multi-lingual
support,
it would be very helpful.
Thanks,
-----
Yibing Li, Ph.D.
Technical Architect
Development and Integration
GlobalNetXChange LLC
703-673-2159 (o)
571-436-5592 (c)
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>