How to build l10n builds for mozilla applications
From mozilla web page, you can easily find out how to build a mozilla application(like Firefox and Thunderbird) with the default locale en-US. But it's not so easy to get how to build a l10n version. Here it is.
1. you have to check out mozilla/tools/l10n/l10n.mk besides mozilla/client.mk.
$ cvs -d:pserver:anonymous-AT-cvs-mirror.mozilla-DOT-org:/cvsroot co mozilla/client.mk mozilla/tools/l10n/l10n.mk
2. do l10n-checkout before checking out the real code.
$ make -f client.mk l10n-checkout MOZ_CO_PROJECT=browser
3. create l10n files, replacing ab-CD with your locale, like zh-CN.
$ make -f tools/l10n/l10n.mk create-ab-CD MOZ_CO_PROJECT=browser
4. add this line into your .mozconfig file.
mk_add_options MOZ_CO_LOCALES=ab-CD
Then, do what you like as normal building.
$ make -f client.mk checkout
$ make -f client.mk build
More detail information available here.

Posted by Yan Huang on June 08, 2007 at 12:25 AM PDT #
Hello Evan,
I found yout little manual and tried this for the locale de-DE. At the end I got a firefox installer called "firefox-3.0.de-DE.win32.installer.exe" but my wizard and the browser is always in englis(en-US).
Do you have an idea? I thank you for your support.
Greets
Torsten
Posted by Torsten on July 11, 2008 at 01:25 AM PDT #
Hi Torsten,
I didn't try it on windows, but if everything works right, there should be de-DE.jar and de-DE.manifest under chrome directory in your build directory.
Posted by Evan on July 16, 2008 at 09:01 PM PDT #
Hello Evan,
under C:\Programme\Mozilla Firefox\chrome I have the de-DE.jar and the de-DE.manifest but my FF build is always in english (en-US). I don't understand this... :(
This is my .mozconfig for the build:
# build a de-DE FF
#. $topsrcdir/browser/config/mozconfig
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_OBJDIR=/c/tmp/de-@CONFIG_GUESS@
ac_add_options --enable-application=browser
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --disable-tests
ac_add_options --enable-official-branding
#mk_add_options MOZ_CO_LOCALES="en-US de-DE de-DE"
ac_add_options --enable-ui-locale=de-DE
Thank you
Torsten
Posted by Torsten on July 17, 2008 at 02:31 AM PDT #