You can also accomplish this in a db or by cfincluding pages based on
whether they want English or French...a simple way would be to use a url var
called language( or anything else for that matter *snerk*) and pass it from
page to page.  A cookie or session var would work for this as well.

Eric 

-----Original Message-----
From: Anthony Crawford [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 August 2006 01:39
To: CF-Talk
Subject: Multi-language website

Hi guys, just wanted to pick your brains before I implement this.
I have been asked to add French to an already English website. What I
suggested was to copy the English files to another directory called
"French". I can switch between languages by adding a bit of code in the
French / English hyperlink.
Just wish to confirm whether this is a good method... :) Thanks

In this example, I am swithing between English and French pages.

English Page (English/index.cfm)
<p>This is the English version.</p>
<p><a href="<cfoutput>#ReplaceNoCase(CGI.SCRIPT_NAME, "english",
"french")#<cfoutput>">Go to French Version</a></p>

French Page (French/index.cfm)
<p>This is the French version.</p>
<p><a href="<cfoutput>#ReplaceNoCase(CGI.SCRIPT_NAME, "french",
"english")#</cfoutput>">Go to English Version</a></p>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251093
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to