Download Guide to Localization of Open Source Software

Transcript
PAN Localization Guide to Localization of Open Source Software
Applying the Patch
The following commands have to be run to apply the patch.
# tar jxvf mozilla-source-1.7.tar.bz2
# cd mozilla
rename the patch to ctl.patch and copy it into the mozilla folder.
# mv attachment.cgi?id=152102 ctl.patch
#patch -Np0 -i ctl.patch
The following 2 files are patched.
a) mozilla/configure.in
b) mozilla/gfx/src/gtk/nsFontMatricsXft.cpp
Once the patching is successful you are ready for compilation.
Generating build environment
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
export MOZ_INTERNAL_LIBART_LGPL= 1
Preparation for compilation
Prepare for compilation with following options
./configure --enable-mathml --enable-crypto --enable-xft --enable-default-toolkit=gtk2 --disable-ctl --enableoptimize=-O2 --disable-debug --disable-tests --without-system-nspr --without-system-zlib --without-systemjpeg --without-system-png --without-system-mng --disable-xprint --disable-freetype --enable-pango
Compilation
Compilation involves the following:
#make
After build is successful, execute and check the rendering by visiting site.
#mozilla/dist/bin/./mozilla
If the rendering is satisfactory, go ahead with the preparation of the mozilla-installer as mentioned in the
following section.
Generating the Mozilla Installer
The following commands have to be run for generating the Mozilla Installer.
# cd mozilla/XPInstall/packager/unix
# perl deliver.pl
you will get erroran complaining about not finding the mozilla-installer.bin file.
To eliminate this error, download a mozilla-installer from mozilla.com, unzip it and copy this particular file
“mozilla-installer.bin” to the following folder
mozilla/XPInstall/wizard/unix/src2/
Run the perl script again. The mozilla-installer.tar.gz will be available in the following location:
mozilla/installer/sea/
69