User:Toniher/Building langpacks
Jump to navigation
Jump to search
Some notes about building langpacks.
Create a working directory and choose base repository you are going to use. E. g.: beta
- Clone base directory:
hg clone http://hg.mozilla.org/releases/mozilla-beta
- Create l10n directory. Example with an.
hg clone http://hg.mozilla.org/users/toniher_softcatala.org/an l10n/an
Inside mozilla-beta directory, create a .mozconfig file with the following content:
ac_add_options --disable-compile-environment mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/aragon ac_add_options --with-l10n-base=/home/toniher/remote-work/mozilla-hg/mozilla-beta/l10n ac_add_options --enable-application=browser ac_add_options --enable-official-branding
Langpack will be created in a subdirectory inside aragon dir. l10n-base should be changed to fit the path in your system. If creating a langpack for other applications, you should change browser for mail or other.
- Inside mozilla-beta, launch this command:
make -f client.mk configure.
- This will generate a
Makefilein: aragon/browser/locales
- Go to aragon/browser/locales, and execute:
make langpack-an
- A langpack will be generated in: aragon/dist/linux-x86_64/xpi (depending on your system)
- XPI is a ZIP file. You can change some things inside:
- In install.rdf, increase major version, let's say, from 12.0 to 12.*
- In chrome.manifest file, remove manifest chrome/an.manifest line (not necessary)
- Save them back and you're done.