Thanks, Tony!

Rick

----------------------------------------
 From: Tony Weeg <[EMAIL PROTECTED]>
Sent: Thursday, April 21, 2005 3:34 PM
To: CF-Talk <[email protected]>
Subject: Re: translating websites 

> How do you accomplish that? By putting them
> into an "application variable structure" like the
> one you mentioned below?

here is the code that i use in my onApplicationStart()

variable="i18nLabels">

structInsert(application.labels,"english",structNew(),"yes")>
structInsert(application.labels,"spanish",structNew(),"yes")>

structInsert(application.labels.english,lcase(numberAsString(i)),xmlSearch(request.i18nLabels,"/labels/#lcase(numberAsString(i))#"),"yes")>

variable="i18nLabels">

structInsert(application.labels.spanish,lcase(numberAsString(i)),xmlSearch(request.i18nLabels,"/labels/#lcase(numberAsString(i))#"),"yes")>

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.com

"...straight cash homey"
- randy moss, now a raider



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203896
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to