Forums

This topic is locked

Language selection

Posted 22 Feb 2001 17:21:41
1
has voted
22 Feb 2001 17:21:41 Michael Guntenaar posted:
<font face='Verdana'></font id='Verdana'>

Hi there, I want people to make an language selection in the start off my page. after that I want them to see everything in the language that they chose..

But I don't want to build the same page 2 times (one in English and Dutch) Is it possible to set an variable or something that tells the page

"if language is English show English files and otherwise"

Hope somebosy can help me.

<img src=icon_smile_big.gif border=0 align=middle>

Replies

Replied 26 Feb 2001 15:27:44
26 Feb 2001 15:27:44 Matthew Thornhill replied:
Hmmmmm
The only thought I had was to put all content into a DB Eng/Dutch and then on a session var Eng/Dutch decides what values are displayed......

I don't think there is a way of doingit without duplication of content.

Using Templates and external style sheets would cut down on the amount of time spent duplicating stuff

MaT
Replied 26 Feb 2001 20:37:05
26 Feb 2001 20:37:05 Waldo Smeets replied:
Just add an extra column to your database table that contains the field for the other langua. Choose the field depending on the choosen language.

I think that using cookies or session variables would be the best option. The most difficult part will be to dynamically define a recordset query, especially because UD can't handle dynamically choosen columns.

An other way (I wouldn;t do it like this) is to put the different languages in different folders, but have them use exactly the same files but different databases. In fact you are running 2 sites, but each with it's own database.

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A Dreamweaver, Ultradev and Fireworks recourse site for developers
by developers.
------------------------------------------
Replied 27 Feb 2001 15:01:55
27 Feb 2001 15:01:55 Michael Guntenaar replied:
Thnx Waldo and MaT im going to try soem stuff If I have problems youll find it here

Reply to this topic