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 -

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" Sent: Wednesday, May 30, 2007 9:16 PM Subject: Re: Multi lingual web site We usually have several

Re: Multi lingual web site

2007-05-30 Thread wang huan
We usually have several resource files, and output fields with tag . Instead of storing values, we store those keys in DB. for instance: -- 北半球的狗几月份掉毛?

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 Action.getLocale(

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 Jon Cruz
Hello, There are a few ways I've gotten around this: 1. Store the other languages in the same table that populates the "select" control. In the future, if you add more languages to your site, you just add to that table. (Which would be similar to adding another resource file for that new langua

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 y