--- Em dom, 17/6/12, Tobias Gasser escreveu:

> De: Tobias Gasser
> Assunto: [blfs-dev] firefox translations
> Para: "blfs-dev"
> Data: Domingo, 17 de Junho de 2012, 13:11
> basic installation is no problem,
> just follow the book (i did xulrunner
> + firefox).
> 
> but:
> getting the german language up and running was not as easy
> as with the
> old 3.6
> 
> as i want german as GLOBAL default, i don't want to have to
> install the
> xpi for each user.
> 
> here my solution:
> 
> download the desired xpi from
> http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${VERSION}/linux-i686/xpi/
> 
> for me it was de.xpi, and now
> 
> cp ${LANG}.xpi
> /usr/X11/lib/firefox-${VERSION}/extensions/langpack-${LANG}@firefox.mozilla.org.xpi
> 
> the user now just has to activate the language as i is
> listed but
> inactive in the languages.
> 
> 
> if you don't need/want it global, each user has to install
> the xpi as it
> is installed in the users .mozilla diretory by default
> 
> 
> in about:config the following must be set:
> general.useragent.locale = de-CH (or whatever fits your
> needs...)
> 
> very important to do all 3 steps:
> - the xpi must be activated (or installed)
> - the general.useragent.locale must be set
> - restart firefox
> 
> 
> 
> maybe a paragraph about this would be useful for others...
> 


This is good. Thanks, Tobias.

What I do is different.

In .mozconfig:
ac_add_options --enable-ui-locale=pt-BR
ac_add_options --with-l10n-base=../

Download the file

wget -c 
https://hg.mozilla.org/releases/l10n/mozilla-release/pt-BR/archive/tip.tar.bz2 
-O firefox-13.0.source.tip.tar.bz2.

The file tip.tar.bz2 uncompress in a unusual way that changes between versions. 
For firefox 12.0, I had it uncompressed as the directory

pt-BR-1425d3501054.

For version 13.0:

pt-BR-d9b31c895dad

In the same directory buildir where firefox was uncompressed,

tar xf firefox-13.0.source.tip.tar.bz2 -C buildir
cd buildir
mv -v pt-BR* pt-BR
cd ../mozilla-release

...


Notice that in buildir there will be the directories mozilla-release and pt-BR.

The mv command deletes the varying part of the pt-BR* name and the build 
expects a dirname = ui-locale defined im .mozconfig, in my case, pt-BR.

For you, replace pt-BR by your LANG value.

At the end you have a localized firefox or thunderbird or xulrunner. Could not 
do the same for seamonkey, though, for a long time.

BTW, I did that today, for FF-13.0.1 and respective xulrunner.. For TB-13.0.1 
it did not build. And, as i wrote above, could not do for SM-2.10.1. With 
these, I will try tomorrow your instructions. (Im not in my regular machine.)

[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to