By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,903 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,903 IT Pros & Developers. It's quick & easy.

Dynamic translation to various languages

P: n/a
Hi,

I'd like to offer 4 versions of my website (3 foreign languages) this way:

- I want the language to be detected by the browser
- I want to be able to choose the language I want by one of 4 radio buttons
- I want dynamic real-time refresh of the whole page to the selected language without the
page having to refresh
- I want it to work on IE, Firebird, Mozilla & Opera

Could some one help me out please?
Thanks,

--
Charles.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Charles" <go***********@yahoo.com> writes:
I'd like to offer 4 versions of my website (3 foreign languages) this way:

- I want the language to be detected by the browser
Hard, going on impossible, depending on the browser. Content language
negoatiation really should happen between the browser and the server,
where there are protocols for it.
- I want to be able to choose the language I want by one of 4
radio buttons
Much easier. Use the onclick event handler on the radio buttons
to "do something'
- I want dynamic real-time refresh of the whole page to the
selected language without the page having to refresh
Are you using "page" and "refresh" in two different meanings her?
Because you ask for the page to refresh without the page having to
refresh!

Do you meant that the page should refresh without reloading?
(Which would require all four languages to be downloaded at the same
time, every time a page is loaded. A serious resource drain for people
who only use one lanugage)
- I want it to work on IE, Firebird, Mozilla & Opera


I would add "and any standards supporting browser".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
Lasse Reichstein Nielsen wrote:
"Charles" <go***********@yahoo.com> writes:
- I want to be able to choose the language I want by one of 4
radio buttons


Much easier. Use the onclick event handler on the radio buttons
to "do something'


And don't use it since there is no "translation" without client-side
JavaScript support. Use a server-side script instead, add a submit
button and pass the selection to the server-side script on submit.

However, the most simple and scriptless way is a hyperlink to each of the
versions (`en/English', `fr/Français, `de/Deutsch' aso. -- do *not* use
flags!). You should combine that with content negotiation. In contrast
to a document for each language, multiple language versions within one
script are hard to maintain.
PointedEars
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.