23, 2005 6:23 PM
To: CF-Talk
Subject: Re: cfapplication - change application name
Could be heavy to load them both at once... may not necessarily
matter, it depends on the traffic and the server...
I would recommend if you're going to reference application structures
like this that you use
It's exactly what you proposed doing originally. The biggest
potential issue is that you've got two application scopes for your one
app. That means you're double caching everything except your
region-specific stuff. If that's all you've got, then no big deal,
but if you've got application
,
Dharmesh
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, June 24, 2005 7:00 PM
To: CF-Talk
Subject: Re: cfapplication - change application name
It's exactly what you proposed doing originally. The biggest
potential issue is that you've got two application
How about a single application that loads both XML files, and stores
them in application.language.french and application.language.english.
Then based on the URL, set request.language to one of the two values
application.langauge variables, and use that throughout your
application for all your
Could be heavy to load them both at once... may not necessarily
matter, it depends on the traffic and the server...
I would recommend if you're going to reference application structures
like this that you use a function or a CFC to return the appropriate
strings from those structures instead of
I intended it the other way, so you'd have
#request.language.welcomeMessage# all over the place. But you're
right, rolling it up in a CFC is definitely the way to go. And with a
CFC, it's much easier to do load-on-demand so the XML is only loaded
on the first request that needs it, rather that
http://www.benorama.com/coldfusion/libraries/i18n.htm
http://www.sustainablegis.com/unicode/resourceBundle/javaRB.cfm
Any of those what you were after?
On 6/24/05, Barney Boisvert [EMAIL PROTECTED] wrote:
I intended it the other way, so you'd have
#request.language.welcomeMessage# all over
7 matches
Mail list logo