473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Dynamic translation to various languages

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
2 1924
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Roel Wuyts | last post by:
CALL FOR CONTRIBUTIONS International Workshop on Revival of Dynamic Languages http://pico.vub.ac.be/~wdmeuter/RDL04/index.html (at OOPSLA2004, Vancouver, British Columbia, Canada, October...
9
by: Gibby Koldenhof | last post by:
Hiya, Terrible subject but I haven't got a better term at the moment. I've been building up my own library of functionality (all nice conforming ISO C) for over 6 years and decided to adopt a...
11
by: Marco Loskamp | last post by:
Dear list, I'm trying to dynamically generate functions; it seems that what I really want is beyond C itself, but I'd like to be confirmed here. In the minimal example below, I'd like to...
3
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
0
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
0
by: alexandre.bergel | last post by:
Dear colleges, You might want to consider Dyla'07 as a good venue to present your work and your favourite programming language. Regards, Alexandre ...
0
by: Alexandre Bergel | last post by:
Dear colleague, Please, note that after the workshop, best papers will be selected, and a second deadline will then be set regarding preparation of the Electronic Communications of the...
5
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.