We provide a multilingual web site as well, and have chosen a slightly
different approach - a generic wrapper page.
This solves other issues as well:
- Statistics - you can see access by fuseaction and by language.
- Bookmarks keep the language
Create a directory - all links will be to this directory, it has one file
for each language and fuseaction. All files are identical, just the names
are different.
An example:
EN_Login.cfm
ES_Login.cfm
FR_Login.cfm
....
EN_Help.cfm
....
The wrapper file contents:
<!--- Name: Generic Wrapper page
Description:
Takes filename and based on it calls the index file with correct language
and fuseaction
Parameters:
written: 15/07/1999 NB
--->
<CFSET variables.TemplateName = GetFileFromPath(GetCurrentTemplatePath())>
<CFSET request.DisplayLanguage = listFirst(variables.TemplateName, "_")>
<CFSET attributes.FuseAction = listGetAt(variables.TemplateName, 2, "_.")>
<CFINCLUDE template="../index.cfm" >
HTH,
Noam
----------
From: Toni Trape [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 09 May 2001 9:16
To: Fusebox
Subject: RE: Advantages of use cfid and cftoken?
OK, i do that but the question is where i put the language flag? In
a
session variable, in a client variable? client variable stored into
a
cookie? client variable and passed in the URL all time?
This is what i don't know.
Toni
At 10:38 08/05/01 -0600, you wrote:
>No, you set a language flag to tell the db which data to select.
Never
>duplicate structure if you can help it ... just pull the
appropriate
>information.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists