Bug 221957 - LINGUAS variable does not affect language of firefox-3.0_betaX UI
Bug#: 221957 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: mozilla@gentoo.org Reported By: malteeggers@googlemail.com
Component: Applications
URL: 
Summary: LINGUAS variable does not affect language of firefox-3.0_betaX UI
Keywords:  
Status Whiteboard: 
Opened: 2008-05-13 15:16 0000
Description:   Opened: 2008-05-13 15:16 0000
www-client/mozilla-firefox-3.0_betaX is always in english. I have LINGUAS="de"
set, I assume other languages do not work either. The LINGUAS variable works
fine for firefox-bin-3.0 or firefox-2.x.x.xx

Reproducible: Always

Steps to Reproduce:
1. set LINGUAS
2. emerge mozilla-firefox-3
3. start firefox with appropriate LC_ALL set

Actual Results:  
No change in UI language


To get your language you can install a language pack from mozilla.com

------- Comment #1 From Raúl Porcel 2008-05-13 15:55:59 0000 -------
emerge --info and emerge -pv mozilla-firefox, please.

Works fine here, though

------- Comment #2 From Malte Eggers 2008-05-13 16:02:14 0000 -------
emerge --info:
Portage 2.1.4.4 (default/linux/amd64/2008.0/desktop, gcc-4.2.3, glibc-2.6.1-r0,
2.6.24-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
4200+
Timestamp of tree: Tue, 13 May 2008 11:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://cesium.di.uminho.pt/pub/gentoo/
http://ftp.cs.pu.edu.tw/Linux/Gentoo/ ftp://ftp.cs.pu.edu.tw/Linux/Gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay
/usr/portage/local/layman/gnash-cvs /usr/portage/local/private_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 async avahi bash-completion
berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd
dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac fortran gcj gdbm
gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog java jpeg kerberos ldap
libnotify mad midi mikmod mmx mmxext mp3 mpeg mudflap multilib musepack
nautilus ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf
perl png ppds pppd python qt3support quicktime rar readline reflection samba
sdl session smp spell spl sse sse2 ssl startup-notification svg symlink tcpd
theora tiff truetype type1 unicode vorbis xml xorg xulrunner xv xvid zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x
ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical
ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history
idleprobe initctl interactive iparser last limit lockfile logfile netdev
netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher
stcmd stdout suid syncron syslog sysreq unneeded usplash"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de"
USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

emerge -pv mozilla-firefox:
[ebuild   R   ] www-client/mozilla-firefox-3.0_beta5-r2  USE="dbus gnome java
startup-notification -bindist -debug -ipv6 -mozdevelop -restrict-javascript
-xulrunner" LINGUAS="de -af -ar -be -ca -cs -el -en -en_GB -en_US -es -es_AR
-es_ES -eu -fi -fr -fy -fy_NL -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt
-mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -sk
-sq -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB

------- Comment #3 From Harald van Dijk 2008-05-13 17:24:00 0000 -------
To rule out the obvious, could you please check

  /usr/lib/mozilla-firefox/defaults/preferences/firefox.js
and
  /usr/lib/mozilla-firefox/defaults/preferences/firefox-l10n.js

to see what the general.useragent.locale setting is in those files? If it got
set there, and you're not seeing it, that could mean the default language is
overridden in your profile.

------- Comment #4 From Raúl Porcel 2008-05-13 18:50:17 0000 -------
(In reply to comment #3)
No, i can reproduce it. It only happens when built with -xulrunner. I'm looking
into it, the problem lies that  
/usr/lib/mozilla-firefox/defaults/preferences/firefox.js
doesn't exist, but   /usr/lib/mozilla-firefox/defaults/pref/firefox.js does,
thing is, why with xulrunner is different? Having a look at it...

------- Comment #5 From Raúl Porcel 2008-05-14 09:24:30 0000 -------
Fixed in r3.

------- Comment #6 From Malte Eggers 2008-05-14 09:34:10 0000 -------
Thanks for that, I'll try it as soon as I'm syncing my tree for it's just a
cosmetic problem - having a german desktop with an english browser.

------- Comment #7 From Colin Macdonald 2008-07-20 04:56:22 0000 -------
reopen?

In 3.0.1 I'm seeing this, en-US is hardcoded in both the files mentioned in
Comment #3.  I had to manually change it in about:config to get zh-CN