Bug#495381: general.useragent.locale preference value is en-US even if iceweasel-l10n-ja is installed.

2008-08-17 Thread Mike Hommey
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]



Bug#495381: general.useragent.locale preference value is en-US even if iceweasel-l10n-ja is installed.

2008-08-17 Thread Morita Sho

On 08/17/2008 04:30 PM, Mike Hommey wrote:

On Sun, Aug 17, 2008 at 05:54:07AM +0900, Morita Sho wrote:

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.


Thanks for your quick reply.

I removed the line 'pref(general.useragent.locale, en-US);' from 
/usr/share/iceweasel/defaults/preferences/firefox.js but 
general.useragent.locale is still en-US.


Afterward, I noticed /usr/share/iceweasel/defaults/preferences/firefox-l10n.js 
also contains the line 'pref(general.useragent.locale, en-US);', removing 
that line works fine.


Regards,

--
Morita Sho [EMAIL PROTECTED]



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



Bug#495381: general.useragent.locale preference value is en-US even if iceweasel-l10n-ja is installed.

2008-08-16 Thread Morita Sho
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  fontconfig2.6.0-1generic 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-3NetScape Portable Runtime Library
ii  libstdc++64.3.1-8The GNU Standard C++ Library v3
ii  procps1:3.2.7-9  /proc file system utilities
ii  psmisc22.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  mozpluggernone (no description available)
pn  ttf-mathematica4.1none (no description available)
pn  xfonts-mathml none (no description available)
pn  xprintnone (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]