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. Regards, -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages iceweasel depends on: ii debianutils 2.30 Miscellaneous utilities specific t ii fontconfig 2.6.0-1 generic font configuration library ii libc6 2.7-13 GNU C Library: Shared libraries ii libgcc1 1:4.3.1-8 GCC support library ii libglib2.0-0 2.16.5-1 The GLib library of C routines ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface ii libnspr4-0d 4.7.1-3 NetScape Portable Runtime Library ii libstdc++6 4.3.1-8 The GNU Standard C++ Library v3 ii procps 1:3.2.7-9 /proc file system utilities ii psmisc 22.6-1 Utilities that use the proc filesy ii xulrunner-1.9 1.9.0.1-1 XUL + XPCOM application runner iceweasel recommends no packages. Versions of packages iceweasel suggests: pn latex-xft-fonts <none> (no description available) ii libkrb53 1.6.dfsg.4~beta1-3 MIT Kerberos runtime libraries pn mozplugger <none> (no description available) pn ttf-mathematica4.1 <none> (no description available) pn xfonts-mathml <none> (no description available) pn xprint <none> (no description available) pn xulrunner-1.9-gnome-s <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]