This works perfectly on linux, but not on windows. Is there something else
that is needed to make localization for a XUL app work on windows ?
I followed the following comments in the xulplanet.com page on localization
and tried with the "Unired" text editor and selected UTF-8 character set.
That made no difference.
Yes,DTD file must be UTF-8 encoding. But UTF-8 not only ONE UTF-8! it also
have UTF8(BOM).So i suggest a great tool to select right encoding under
Windows: UniRed, You must use File->Properties->Charset[UTF-8] and Unicode
representation[&#DDDD;] to selected!! ]
Thanks for suggestions!
-Sandip
No. I would expect some installation problem.
> I followed the following comments in the xulplanet.com page on localization
> and tried with the "Unired" text editor and selected UTF-8 character set.
> That made no difference.
>
>
>
> Yes,DTD file must be UTF-8 encoding. But UTF-8 not only ONE UTF-8! it also
> have UTF8(BOM).So i suggest a great tool to select right encoding under
> Windows: UniRed, You must use File->Properties->Charset[UTF-8] and Unicode
> representation[&#DDDD;] to selected!! ]
I never understood the rationale for having a byte order mark in a
single byte encoding.
Axel
Not sure if all of this is required, but until I had the language pack
installed and these options set, XULRunner was not respecting the
general.useragent.locale setting to anything other than "en-US".
-Sandip
Axel
_______________________________________________
dev-tech-xul mailing list
dev-te...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xul
We are using the binary distribution of XUL Runner 1.8.0.4 as the runtime.
Doing a search through the JS files in the XUL Runner package, there are 2
files that are declaring this preference:
Xulrunner/greprefs/all.js:
pref("general.useragent.locale",
"chrome://navigator/locale/navigator.properties");
and xulrunner/defaults/prefs/xulrunner.js
(with some interesting comments preceeding the declaration, included here)
// We need to override the default values of these preferences since all.js
// assumes these are in the navigator package, which for us is non-existant.
// XXX(darin): perhaps all.js should not be seamonkey specific
pref("general.useragent.locale", "en-US");
I also set general.useragent.locale in the app specific prefs.js file
(/my-app/defaults/preferences/prefs.js)
I expected atleast one of the following to work (in order):
1. Any preference in the app specific prefs.js should override preferences
set anywhere else.
2. If I comment out the general.useragent.locale setting in the above 2
XulRunner location then it should pick the value set for this preference in
the app specific prefs.js
Neither of this two happen, the general.useragent.locale preference is
ALWAYS read from all.js followed by xulrunner.js and the value set in the
app specific prefs.js is ALWAYS ignored.
The work around for me to get localization to respect the selected locale is
to change the preference in xulrunner.js.
Is this a bug or am I doing something wrong here?