Subj : Re: Rhino Contex SetLocale dont work To : netscape.public.mozilla.jseng From : Danilo Date : Wed May 26 2004 10:24 am No Context.getLocale() don't return default locale, Because if i change contex.getLocale it not eguals Locale.getDefault. But if i run script it considers Locale.getDefault. Yes, the my contex is in Thread Thanks Danilo "Igor Bukanov" ha scritto nel messaggio news:40B3B22A.90405@fastmail.fm... > Danilo wrote: > > Hi i have this problem with Rhino: > > > > I use setLocale("en","US") for Contex but when i get to JavaScript the > > Default Locale it return "it" "IT". > > Why? > > You mean Context.getLocale() returns a default locale? That is strange. > Do you call Context.setLocale()/getLocale() in the same thread? > > Also note that Context.getLocale() is only used to localize error > messages that Rhino generates and since there is no Italian localization > , "it_IT" should produce the same error messages as "en_US". > > Regards, Igor .