From owner-freebsd-gecko@FreeBSD.ORG Mon Feb 27 21:13:09 2012 Return-Path: Delivered-To: gecko@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB48D106566B; Mon, 27 Feb 2012 21:13:09 +0000 (UTC) (envelope-from beat@FreeBSD.org) Received: from marvin.chruetertee.ch (marvin.chruetertee.ch [217.150.245.55]) by mx1.freebsd.org (Postfix) with ESMTP id 508118FC0C; Mon, 27 Feb 2012 21:13:08 +0000 (UTC) Received: from [192.168.1.100] (dynamic-94-247-222-114.catv.glattnet.ch [94.247.222.114]) (authenticated bits=0) by marvin.chruetertee.ch (8.14.4/8.14.3) with ESMTP id q1RKnFwo067718 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Mon, 27 Feb 2012 20:49:15 GMT (envelope-from beat@FreeBSD.org) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=windows-1252 From: =?iso-8859-1?Q?Beat_G=E4tzi?= In-Reply-To: Date: Mon, 27 Feb 2012 21:49:15 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <87A23585-630B-4E08-BC6F-0ABE507F724E@FreeBSD.org> References: To: Olivier Smedts X-Mailer: Apple Mail (2.1257) Cc: FreeBSD Ports , gecko@FreeBSD.org Subject: Re: www/firefox and mail/thunderbird localization X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 21:13:10 -0000 On Feb 20, 2012, at 5:50 PM, Olivier Smedts wrote: > Hello, >=20 > Has anything changed recently regarding Firefox and Thunderbird > localization / global extensions ? >=20 > Since Firefox 10.0 I don't have localized menus anymore. > % ls /var/db/pkg/ | grep firefox > firefox-10.0.1,1 > firefox-i18n-10.0.1 > % grep 'WITH_' /var/db/ports/firefox-i18n/options > WITH_LANG_FR=3Dtrue > % grep 'general.useragent.locale' = ~/.mozilla/firefox/*.default/prefs.js > user_pref("general.useragent.locale", "fr-FR"); >=20 > But Firefox still has english menus. It has been working since Firefox > 3 through Firefox 9, and the localization stopped working with Firefox > 10.0. It did not come back with Firefox 10.0.1. The same thing applies > for Thunderbird 10. I also tried with the switcher extension, no luck. > Tried with a new profile, with different values (like "fr" only) for > general.useragent.locale, with 'firefox -UILocale "fr-FR"' or 'firefox > -UILocale "fr"'... nothing made it. I found no xpi, they seem to be > extracted. >=20 > % find /usr/local/ -name \*.xpi | wc -l > 0 > % ll /usr/local/lib/xpi/ > total 1 > drwxr-xr-x 3 root wheel 5 14 f=E9v 12:37 = langpack-fr@firefox.mozilla.org > drwxr-xr-x 3 root wheel 5 14 f=E9v 12:38 = langpack-fr@thunderbird.mozilla.org > drwxr-xr-x 7 root wheel 11 14 f=E9v 12:17 = lightning@thunderbird.mozilla.org > drwxr-xr-x 12 root wheel 12 14 f=E9v 12:38 symlinks >=20 > Any advice ? I had some time to take a look at it. When extracting the content of the xpi into the corresponding directory in /usr/local/lib/xpi/ the = langpacks are working again. In the past we created a jar file out of the locale directory because the content differs between each langpack and it was a very time-consuming task to update all the langpacks: ${LOCALBASE}/bin/zip -r ../$$lang.jar locale; \ Unfortunately it looks like this does no longer work=85 Currently I'm looking for a solution to extract the xpi as it is and dynamically generating the plist in the ports Makefile. Beat=