I use this script to switch between 2 languages (French and English) 

See this example at http://www.utopicminds.com 

Make sure you use the same directory structure for both language.

Ex:
---------------
French : /fr/index.cfm
English: /fr/index.cfm


So on your page all you need to do is make a link using this code.
I put this in my header file (<cfinclude template="header.cfm">)

Link to the english page:
<a href="../fr/<cfoutput>#ListLast(CGI.SCRIPT_NAME, "/")#</cfoutput>">English Page</a>

Link to the french page:
<a href="../en/<cfoutput>#ListLast(CGI.SCRIPT_NAME, "/")#</cfoutput>">French Page</a>

Simple but useful.

About This Tutorial
Author: Dan St-Amour
Skill Level: Beginner 
 
 
 
Platforms Tested: CF1,CF2,CF3,CF4,CF5,CFMX,CFMX7
Total Views: 25,608
Submission Date: July 07, 2005
Last Update Date: June 05, 2009
All Tutorials By This Autor: 2
Discuss This Tutorial
Advertisement

Sponsored By...
Powered By...