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
-
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
We usually have several resource files, and output fields with tag
. Instead of storing values, we
store those keys in DB.
for instance:
--
北半球的狗几月份掉毛?
-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(
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
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
-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
7 matches
Mail list logo