Dynamic translation to various languages

C

Charles

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,
 
L

Lasse Reichstein Nielsen

Charles said:
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
 
T

Thomas 'PointedEars' Lahn

Lasse said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top