First thanks to all of you, but i continue confused about my solution.
Perhaps if i tell you my problem all of you can understand me better, and
can give me the better solution.
I'm developing some websites in fusebox and fusebox is a very good method
to make websites, but i have a problem about the languages.
These websites have more than one languages (english, french, spanish,...).
In the first time we duplicated all templates for each lenguage, but any
update in the website will force us to make it for each language templates
so the mantenience of a website is very hard, specialy in websites that are
in 3 or 4 languages.
Then i discover fusebox. I was thinking that fusebox can solve this problem
and i was trying to make something like this in index.cfm file:
<CFCASE VALUE="list">
<cfinclude template="qry_list.cfm">
<cfinclude template="lng_list_#session.language#.cfm">
<cfinclude template="dsp_list.cfm">
</CFCASE>
#session.language# is a variable that define the user language (choosed in
homepage).
I include a template lng_ that have some cfset's.
<cfset text1 = "hello"> in lng_list_en.cfm
<cfset text1 = "hola"> in lng_list_es.cfm
And in dsp_ file i have <cfoutput>#text1#</cfoutput>
So for each dsp file i have some lng_ files.
Is good for:
-the mantenience so i only have one dsp file
-translate a website is only translate the lng files.
Problems:
-dsp templates code are more nasty and dificult to edit because have many
cfoutput for each text.
-The session variables expires with a timeout so if some person have a
bookmark to one page can be possible the next time he go to this bookmark
the session have expired so he will see the page in the default language,
no in his choosed language.
For this is for what i looking for a better solution than session variables.
Toni
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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