[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add a locale to Icecat
From: |
Bruno Miguel |
Subject: |
Re: Add a locale to Icecat |
Date: |
Tue, 05 Aug 2008 19:51:34 +0100 |
Em 03-08-2008 14:32:46 Giuseppe Scrivano escreveu:
> Bruno Miguel wrote:
> > I've finally was able to build a xpi file, but I had to put the
> pt-PT
> > locale folder outside IceCat's source, in a l10n folder. That and
> the
> > creation of a few files related to the browser branding made it.
> > But shouldn't IceCat build with any locale from Firefox? If one
> uses
>
> > the xpi file from Mozilla, unless he or she edites the content of
> that
> > file, one will end up with IceCat with Firefox name all over the
> place.
>
> Yes, it shouldn't be done to avoid the name "Firefox" all around.
> But
>
> the problem is that we lack manpower to care about localizations too.
> I don't know how much of this work can be done automatically. What
> did
> you do to obtain the final .xpi?
>
> Thanks,
> Giuseppe
>
This kinda howto was made in gNewSense. So, in Debian and Ubuntu the
procedure will probably similar, as in other GNU/Linux distributions.
I have all my source files in /usr/src, so this will be the "work
root".
Open up a terminal, go to /usr/src and run the following commands:
sudo cvs -z3 -d:pserver:address@hidden:/cvsroot co
mozilla/client.mk
sudo cvs -z3 -d:pserver:address@hidden:/cvsroot co
mozilla/tools/l10n
After that you will have a mozilla folder. Open it (cd mozilla) and
execute the following command to download the locales (don't forget to
replate pt-PT with the locale you want):
sudo make -f client.mk l10n-checkout MOZ_CO_PROJECT=browser
MOZ_CO_LOCALES=pt-PT
When the download is done (that also downloads the mozilla source, but
that's how it's explained in http://developer.mozilla.org/en/docs/
Patching_a_Localization), a l10n directory will be created in /usr/src
containing the locale you specified. So, go back to /usr/src and enter
l10n/pt-PT (remember that pt-PT must be replaced by the locale you
downloaded). Now, enter the browser folder in l10n/pt-PT and use the
following command:
sudo mkdir -p branding/unofficial
Now, without leaving that folder, you will need to copy the brand.dtd
and brand.properties files and edit them:
sudo cp ../../chrome/branding/brand.*
My brand.dtd and brand.properties files are like this:
<!ENTITY brandShortName "IceCat">
<!ENTITY brandFullName "GNUzilla IceCat">
<!ENTITY vendorShortName "IceCat">
I also edit some other files, as you can see in the diff attached to
this email.
After that, go to icecat's source in /usr/src and compile it with your
locale:
sudo ./configure --enable-ui-locale=pt-PT; sudo make
###################################################
To create a xpi extension, just follow all the steps preceding the
compilation of IceCat. Then, compile IceCat without the locale flag
(just sudo ./configure; sudo make) and then go to browser/locales
inside IceCat's source and execute this command (replacing pt-PT with
your locale):
sudo make langpack-pt-PT
pt-PT.icecat.diff
Description: Text Data
- Add a locale to Icecat, Bruno Miguel, 2008/08/03
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/03
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/03
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/03
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/03
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/03
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/03
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/03
- Re: Add a locale to Icecat,
Bruno Miguel <=
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/05
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/05
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/05
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/06
- Re: Add a locale to Icecat, Bruno Miguel, 2008/08/06
- Re: Add a locale to Icecat, Giuseppe Scrivano, 2008/08/06