Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Websites in Multiple Languages 1

Status
Not open for further replies.

gmail2

Programmer
Jun 15, 2005
987
IE
We have a website which is used for remote access for users. It loads in whichever language is top of the user's preference - how is this done? Is it because it uses Java as I've noticed that Java Web Start can do this also. Or is there a way of doing this in good old fashioned HTML?
 
Well, if you don't mind that there are only two functioning choices (english and no-text), you can see it at


Notice in my code that the code to change the language has been commented out, so if you choose French or German or Spanish, it just goes blank. This was the part where they said "If the translations aren't perfect, then let's not show them yet".

Now, I should point out an obvious flaw here.

Currently, the language has to be changed for every page. However, I was planning on adding a hidden control and modifying the links so that they pass the value of the hidden control over and the page modifies the DIV visibility upon loading. But I don't know how to do that.

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Another obvious flaw is that if the user visits without javascript, they will get every language translation. Another is that every language translation will be sent to the page regardless of the language chosen... depending on the language... 2, 3, 4, 5x the page weight.

Cool idea... but falls over when you look closer.

Server-side solutions are where it's at for this kind of problem.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top