2011-04-15

Slitaz -- firefox 4.0 / langpack -2

refer to:
http://alanyih.blogspot.com/2011/04/slitaz-firefox-40-langpack.html

1.

http://labs.slitaz.org/issues/480
Bug #480

[cooking] firefox-langpack-zh_TW (4.0) install fails!
Added by alanyih lin 4 days ago.

Status: New Start date: 04/11/2011
Priority: Normal Due date:
Assignee: - % Done:
0%
Category: -
Target version: -
Description

firefox-langpack* (4.0)
Use the code below to change locale of firefox in shell:
sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js

(1).
root@slitaz:~# sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js
sed: /etc/firefox/pref/firefox-l10n.js: No such file or directory

(2).
root@slitaz:~# cat /var/lib/tazpkg/installed/firefox-langpack-zh_TW/files.list | head -2
/usr/lib/-4.0/extensions/langpack-zh-TW@firefox.mozilla.org/chrome.manifest
/usr/lib/-4.0/extensions/langpack-zh-TW@firefox.mozilla.org/chrome/zh-TW/locale/browser-region
root@slitaz:~#

(3).
root@slitaz:~# tazpkg get-install firefox-langpack-zh_TW
firefox-langpack-zh_TW-4.0 already in the cache : /var/cache/tazpkg/cooking/packages

Installation of : firefox-langpack-zh_TW ================================================================================
Copying firefox-langpack-zh_TW... [ OK ]
Extracting firefox-langpack-zh_TW... [ OK ]
Extracting the pseudo fs... (lzma) [ OK ]
Installing firefox-langpack-zh_TW... [ OK ]
Removing all tmp files... [ OK ]

Use the code below to change locale of firefox in shell:
sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js

================================================================================
firefox-langpack-zh_TW (4.0) is installed.

root@slitaz:~# sed -i '/pref/s/en-US/zh-TW/' /etc/firefox/pref/firefox-l10n.js
sed: /etc/firefox/pref/firefox-l10n.js: No such file or directory

(4).
http://hg.slitaz.org/wok/rev/c8159297fa54

wok changeset 9386:c8159297fa54
Up firefox-langpack* (4.0)
author Pascal Bellard
date Sat Mar 26 11:12:45 2011 +0100 (2 weeks ago ago)
parents 5ab5ab1b7f51
children ac317c95f39c
files firefox-langpack-fr/receipt firefox-langpack-zh_CN/receipt firefox-langpack-zh_TW/receipt


----

2.

http://hg.slitaz.org/wok/
wok log
rev 9609: (0) -3000 -1000 -300 -100 -60 tip
age author description
5 hours ago Christophe Lincoln Up tazweb (1.2) - New URL entry and handle personal/bookmarks pagedefault tip
12 hours ago Pascal Bellard busybox: fix french translation for top and pcan desktop files
14 hours ago Christophe Lincoln Up slitaz-mercurial-style (1.1.2) to have updated likns to bugs tracker (Thank Claudinei)
23 hours ago Pascal Bellard nanochess: add title
24 hours ago Pascal Bellard urxvt: update depends
32 hours ago Christopher Rogers busybox: Added french translate for top and pcan desktop files. Fixed bug #475.
34 hours ago Christopher Rogers firefox: Added firefox-l10n.js to stuff folder so its copyed into package. Update prefs.js file. Fixed bug #480.
34 hours ago Christopher Rogers Fixed firefox-langpack-zh_TW install path. SOURCE is not needed anyway with this receipt.
[..]


----

3.

http://hg.slitaz.org/wok/rev/d7fc7a8fb846
wok changeset 9602:d7fc7a8fb846
Fixed firefox-langpack-zh_TW install path. SOURCE is not needed anyway with this receipt.
author Christopher Rogers
date Wed Apr 13 22:40:14 2011 +0000 (34 hours ago ago)
parents 1e023dcbed0e
children 2e0f0123456b
files firefox-langpack-zh_TW/receipt
line diff
1.1 --- a/firefox-langpack-zh_TW/receipt Wed Apr 13 10:50:54 2011 +0000
1.2 +++ b/firefox-langpack-zh_TW/receipt Wed Apr 13 22:40:14 2011 +0000
1.3 @@ -15,7 +15,7 @@
1.4 # Rules to gen a SliTaz package suitable for Tazpkg.
1.5 genpkg_rules()
1.6 {
1.7 - EXTDIR="$fs/usr/lib/$SOURCE-$VERSION/extensions/$LANG_DIR"
1.8 + EXTDIR="$fs/usr/lib/firefox-$VERSION/extensions/$LANG_DIR"
1.9 mkdir -p $EXTDIR
1.10 cp -a $src/* $EXTDIR
1.11 }


----

4.

http://hg.slitaz.org/wok/rev/2e0f0123456b
wok changeset 9603:2e0f0123456b
firefox: Added firefox-l10n.js to stuff folder so its copyed into package. Update prefs.js file. Fixed bug #480.
author Christopher Rogers
date Wed Apr 13 22:53:13 2011 +0000 (34 hours ago ago)
parents d7fc7a8fb846
children 2aea8b0a4873
files firefox/receipt firefox/stuff/firefox-l10n.js firefox/stuff/prefs.js
line diff
1.1 --- a/firefox/receipt Wed Apr 13 22:40:14 2011 +0000
1.2 +++ b/firefox/receipt Wed Apr 13 22:53:13 2011 +0000
1.3 @@ -34,7 +34,6 @@
1.4 # Rules to gen a SliTaz package suitable for Tazpkg.
1.5 genpkg_rules()
1.6 {
1.7 - i=$src
1.8 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome $fs/usr/share $fs/etc
1.9 cp -a $_pkg/usr/bin $fs/usr
1.10 cp -a $_pkg/usr/lib/$PACKAGE-$VERSION $fs/usr/lib
1.11 @@ -56,6 +55,9 @@
1.12 mv -f $fs/usr/lib/$PACKAGE-$VERSION/$i $fs/etc/$PACKAGE
1.13 done
1.14
1.15 + # added firefox-l10n.js to stuff to make sure its copyed for langpacks
1.16 + cp -a $stuff/firefox-l10n.js \
1.17 + $fs/etc/firefox/pref/firefox-l10n.js
1.18
1.19 ln -s /etc/$PACKAGE/browserconfig.properties $fs/usr/lib/$PACKAGE-$VERSION
1.20 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/firefox/stuff/firefox-l10n.js Wed Apr 13 22:53:13 2011 +0000
2.3 @@ -0,0 +1,5 @@
2.4 +//@line 36 "/home/slitaz/experimental/wok/firefox/firefox-4.0/browser/locales/en-US/firefox-l10n.js"
2.5 +
2.6 +//@line 38 "/home/slitaz/experimental/wok/firefox/firefox-4.0/browser/locales/en-US/firefox-l10n.js"
2.7 +
2.8 +pref("general.useragent.locale", "en-US");
3.1 --- a/firefox/stuff/prefs.js Wed Apr 13 22:40:14 2011 +0000
3.2 +++ b/firefox/stuff/prefs.js Wed Apr 13 22:53:13 2011 +0000
3.3 @@ -9,6 +9,6 @@
3.4 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
3.5 */
3.6
3.7 -user_pref("general.useragent.extra.firefox", "Firefox/3.5 (SliTaz GNU/Linux)");
3.8 +user_pref("general.useragent.extra.firefox", "Firefox/4.0 (SliTaz GNU/Linux)");
3.9 user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1, UTF-8");
3.10 user_pref("font.name.serif.x-western", "DejaVu Sans");