Tuesday Dec 12, 2006

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.

About

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

Search

Archives
« April 2014
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
   
       
Today