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.

Comments:

Interesting enough that someone else technical has the words "yan's blog" in their blog name

Posted by Yan Huang on June 07, 2007 at 05:25 PM 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 10, 2008 at 06:25 PM 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 02: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 16, 2008 at 07:31 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm a developer working on Solaris I/O framework. Formerly, I worked on Mozilla and GNOME projects.

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
      
Today