On Sun, Aug 17, 2008 at 05:54:07AM +0900, Morita Sho wrote:
> Package: iceweasel
> Version: 3.0.1-1
> Severity: normal
> 
> Hi,
> 
> I noticed that some automatic language detection code written in JavaScript
> won't work (mis-determines my language) on Iceweasel.  Such script uses the
> value of "navigator.language" to determine the user's language.
> 
> I'm running Iceweasel with Japanese language package (iceweasel-l10n-ja), but
> "navigator.language" returns "en-US" instead of "ja".
> (You can see the value of "navigator.language" by putting
> javascript:alert(navigator.language); into the address-bar in Iceweasel.)
> 
> I suspected that my profile is broken. So I created a new profile for
> Iceweasel, but "navigator.language" is still "en-US".
> 
> FYI, "navigator.language" returns "ja" in Firefox 3 Japanese version.
> 
> After some investigations, I see that the value of "navigator.language" is the
> value of "general.useragent.locale" preference.  Put "ja" to
> "general.useragent.locale" preference works fine.
> 
> 
> It would be great if the default value of "general.useragent.locale" is pulled
> from the language pack currently using.
> 
> Please consider to put a following line to /etc/iceweasel/pref/iceweasel.js.
> 
>   pref("general.useragent.locale", "chrome://global/locale/intl.properties");
> 
> Note: "chrome://global/locale/intl.properties" is a special value, the value
> will be pulled from the language pack.

Actually, removing the preference from
/usr/lib/iceweasel/defaults/preferences/firefox.js should be enough, as
general.useragent.locale is correctly defined in
/usr/lib/xulrunner-1.9/greprefs/all.js.

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to