|
Personally I would do it the second way. You'd have a lot more files
to modify using the first method if you wanted to ad a third
language.
But
instead of using attributes.language I'd simply put the language preference into
a client variable. So instead of
<cfinclude template="dsp_display#attrubutes.language#.cfm">
it would read
<cfinclude template="dsp_display#clients.language#.cfm">.
That way you don't have to pass the language variable to every
single script. (Although, you could also avoid that hassle by
appending attributes.language to #self# in
fbx_settings.cfm)
You
could also put the same logic in your layout file like so:
<cfswitch expression="#client.language#">
<cfcase value="fr">
<cfset fusebox.layoutFile =
"frenchLayout.cfm">
</cfcase>
<cfdefaultcase>
<cfset fusebox.layoutFile =
"englishLayout.cfm">
</cfdefaultcase> </cfswitch>
That
way you could have a different layout for each language.
You
could also set up a variable to reference the correct images in
fbx_settings.cfm:
<cfswitch expression="#client.language#">
<cfcase value="fr">
<cfset request.images =
"path/to/french/images/">
</cfcase>
<cfdefaultcase>
<cfset request.images =
"path/to/english/images/">
</cfdefaultcase> </cfswitch>
Then in your display files you put <img
src="javascript:void(0);">
Of course you could still use
attributes.language instead of client.language if you prefer...
Hope this helps,
Balazs
-----Original Message-----
From: John Jonathan Kopanas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 5:38 PM To: Fusebox List Cc: Denis Doyle Subject: Multinlingula Sites and Methodology
==^================================================================ This email was sent to: [email protected] EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9 Or send an email to: [EMAIL PROTECTED] T O P I C A -- Register now to manage your mail! http://www.topica.com/partner/tag02/register ==^================================================================ |
- Multinlingula Sites and Methodology John Jonathan Kopanas
- Re: Multinlingula Sites and Methodology Balazs Wellisch
- Re: Multinlingula Sites and Methodology John Jonathan Kopanas
- RE: Multinlingula Sites and Methodology Erik Voldengen
- RE: Multinlingula Sites and Methodo... Bob Krieger
- Re: Multinlingula Sites and Me... John Jonathan Kopanas
- RE: Multinlingula Sites an... Bob Krieger
- Re: Multinlingula Sites and Methodo... John Jonathan Kopanas
- RE: Multinlingula Sites and Me... Erik Voldengen
- RE: Multinlingula Sites and Methodology Balazs Wellisch
- RE: Multinlingula Sites and Methodo... Steve Tannock
- Re: Multinlingula Sites and Methodology Erki Esken
