Re: Multi lingual web site

2007-05-31 Thread Roger Varley
Using the locale, you should be able to construct a SQL query to load the correct data from the table structure I mentioned. Or you could add language choice as a user selectable option on either your login page (if you use a login) or on your home page. Regards Roger

Multi lingual web site

2007-05-30 Thread Joe Yuen
I am trying to build a mutilingual website. I'm currently using a resource file and that all work great except for some select boxes the data comes from the database where the data is in english. I was wondering how other people handle this situation? Should I have the same table also store the

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: I'm currently using a resource file and that all work great except for some select boxes the data comes from the database where the data is in English. I was wondering how other people handle this situation? You'll need your

RE: Multi lingual web site

2007-05-30 Thread Jon Cruz
, it all depends on how many options your select has. I use it for those selects that have no more than 10 options. Jon -Original Message- From: Joe Yuen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 1:16 PM To: Struts Users Mailing List Subject: Multi lingual web site I am trying

RE: Multi lingual web site

2007-05-30 Thread Joe Yuen
Thanks Chris. How does one detect which language and country is selected? From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wed 5/30/2007 1:37 PM To: Struts Users Mailing List Subject: Re: Multi lingual web site -BEGIN PGP SIGNED MESSAGE

Re: Multi lingual web site

2007-05-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: How does one detect which language and country is selected? Since you are posting to the Struts mailing list, I would imagine that you are using Struts. Struts 1.x allows you to grab the user's Locale by using

Re: Multi lingual web site

2007-05-30 Thread wang huan
We usually have several resource files, and output fields with tag bean:message key=key_in_resource_file /. Instead of storing values, we store those keys in DB. for instance: html:select property=attributeStyle html:option value=pagecontent.datebean:message key=

Re: Multi lingual web site

2007-05-30 Thread Martin Gainty
and destroy the original message without making a copy. Thank you. - Original Message - From: wang huan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, May 30, 2007 9:16 PM Subject: Re: Multi lingual web site We usually have several resource