Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44632 Details for
Bug 69654
mozilla-firefox-bin should use LINGUAS
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
firefox-linguas.patch
firefox-linguas.patch (text/plain), 1.99 KB, created by
Tobias Sager
on 2004-11-24 05:46:42 UTC
(
hide
)
Description:
firefox-linguas.patch
Filename:
MIME Type:
Creator:
Tobias Sager
Created:
2004-11-24 05:46:42 UTC
Size:
1.99 KB
patch
obsolete
>--- /usr/portage/net-www/mozilla-firefox-bin/mozilla-firefox-bin-1.0.ebuild.org 2004-11-24 12:20:25.248063000 +0100 >+++ mozilla-firefox-bin-1.0.ebuild 2004-11-24 14:35:02.578063000 +0100 >@@ -4,10 +4,22 @@ > > inherit nsplugins eutils mozilla-launcher > >+MY_P="firefox-${PV}.tar.gz" >+ >+# left out languages: ast-ES, ja-JPM, en-GB >+LANGS="ca-AD cs-CZ da-DK de-DE el-GR en-US es-AR fi-FI fr-FR he-IL hu-HU it-IT >+ja-JP ko-KR nb-NO pl-PL pt-BR ro-RO ru-RU sl-SI sv-SE zh-TW" >+LANG_BASE_URI="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/linux-i686/xpi/" >+SWITCHER="http://benjamin.smedbergs.us/switch-locales/switch-locales-1.0.xpi" >+ > IUSE="gnome" > > DESCRIPTION="The Mozilla Firefox Web Browser" >-SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/linux-i686/en-US/firefox-${PV}.tar.gz" >+SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/1.0/linux-i686/en-US/${MY_P}" >+for pkg in ${LANGS}; do >+ SRC_URI="${SRC_URI} >+ linguas_${pkg/-*/}? ( ${LANG_BASE_URI}${pkg}.xpi ${SWITCHER} )" >+done > HOMEPAGE="http://www.mozilla.org/projects/firefox" > RESTRICT="nostrip" > >@@ -29,6 +41,11 @@ > > S=${WORKDIR}/firefox > >+src_unpack() { >+ # this is that unpack doesn't print messages about the .xpi files >+ unpack ${MY_P} >+} >+ > src_install() { > # Install firefox in /opt > dodir /opt >@@ -73,6 +90,23 @@ > } > > pkg_postinst() { >+ # treat LINGUAS, silently install all requested language packs and the >+ # switcher >+ for XPI in ${A}; do >+ if [ -z "`echo ${XPI} | sed 's/.*\.xpi$//'`" ]; then >+ if [ -n "`echo ${XPI} | grep 'switch-locales'`" ]; then >+ einfo "Registering language switcher..." >+ else >+ einfo "Registering language pack ${XPI/.xpi/}..." >+ fi >+ ${ROOT}/opt/firefox/firefox -install-global-extension ${DISTDIR}/${XPI} >+ fi >+ done >+ if [ -n "${LINGUAS}" ]; then >+ einfo "To switch to your desired language start Firefox, goto" >+ einfo "Tools->Languages and make the appropriate setting." >+ fi >+ > export MOZILLA_FIVE_HOME=${ROOT}/opt/firefox > > update_mozilla_launcher_symlinks
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 69654
:
44631
|
44632
|
45154
|
66996