Subj : Re: Rhino Contex SetLocale dont work To : Danilo From : Igor Bukanov Date : Wed May 26 2004 04:19 pm Danilo wrote: > 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 Context.setLocale simply store the passed argument in Context instance and does not call Locale.setDefault or any other locale methods. As I wrote the only thing it may affect is messages produced by Rhino and it does not affect any locale setting as seen from scripts. To change that use Locale.setDefault() etc. > > 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 > > > .