Richard Kroll wrote:
> I was under the impression that getLocale() and setLocale() worked on
> the current request.  I was using setLocale(myQuery.userLocale) to set

yes getLocale will return what the request locale is, which initially 
will be the server locale.

> the correct locale.  But in certain cases where I've got say "us_GB"
> stored for the user, CF will return "English(UK)" which forces my CFC to
> fail to render things correctly.  Is there another way I should handle
> this?

i guess you meant en_GB? if you're already storing locale IDs as en_GB, 
as i said before you can build the locale object in one line of code:

thisLocale=createObject("java","com.ibm.icu.util.ULocale").init("en_GB");

you can pass that into your rb. btw using UResourceBundle is kind of 
problematic on shared hosts as it doesn't support rb off the classpath.

in case you don't already know, you can find most of the icu4j 
functionality wrapped up in CFCs here:

http:\\www.sustainableGIS.com\things.cfm

or on myblog:

http:\\www.sustainableGIS.com\blog\cfg11n\






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251532
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to