Creating a new localization for Firefox 3.1
January 30th, 2009
Someone I know recently expressed interest in translating Firefox into her native language, Tagalog. Being a build guy, I decided to spare her the pain of getting everything setup and let her focus on the translation. Much to my dismay I discovered that the Create a New Localization page hasn’t been fully updated for Firefox 3.1 yet. By mashing together information on a couple of pages and a lot of help from #l10n I managed to get an environment up and running that allowed her to dive in.
Here’s how to do it. (Note: This has been tested on Mac and Windows. On Windows, this depends on MozillaBuild 1.3; on both it depends on Python setuptools.)
- Install compare-locales
- Clone mozilla-1.9.1
- Create the barebones localization
- Create a mozconfig file, setup your object directory
- Test merge-ab-CD and langpack-ab-CD targets
wget http://pypi.python.org/packages/2.5/c/compare-locales/compare_locales-0.6.1-py2.5.egg#md5=0b939a22d87427d80f5286dc5eb1eab2
easy_install compare_locales-0.6.1-py2.5.egg
hg clone http://hg.mozilla.org/releases/mozilla-1.9.1
mkdir -p tl/browser/installer tl/browser/profile/chrome tl/browser/searchplugins tl/browser/updater tl/toolkit
cp mozilla-1.9.1/browser/locales/en-US/defines.inc tl/browser
cp mozilla-1.9.1/browser/locales/en-US/profile/chrome/userC* tl/browser/profile/chrome
cp mozilla-1.9.1/browser/locales/en-US/firefox-l10n.js tl/browser
cp mozilla-1.9.1/browser/locales/en-US/README.txt tl/browser
cp mozilla-1.9.1/browser/locales/en-US/searchplugins/list.txt tl/browser/searchplugins
cp mozilla-1.9.1/browser/locales/en-US/updater/updater.ini tl/browser/updater/updater.ini
cp mozilla-1.9.1/toolkit/locales/en-US/defines.inc tl/toolkit
cd mozilla-1.9.1
echo “mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fx-tl” > .mozconfig
echo “ac_add_options –with-l10n-base=../” >> .mozconfig
echo “ac_add_options –disable-compile-environment” >> .mozconfig
echo “ac_add_options –enable-application=browser” >> .mozconfig
make -f client.mk configure
cd ../fx-tl
make -C browser/locales merge-tl LOCALE_MERGEDIR=`pwd`/../merge
make -C browser/locales langpack-tl LOCALE_MERGEDIR=`pwd`/../merge LANGPACK_FILE=`pwd`/../firefox-tl.xpi
If everything went well, you should be ready to translate now!
Mozilla Scheduled Downtime – 01/30/2009 – 6am – 8am PST
January 29th, 2009
During this time we will be landing the patches listed on this page:
https://wiki.mozilla.org/ReleaseEngineering:BuildbotMasterChanges#Upcoming_changes
And as mentioned in Alice’s previous post we will be unthrottling the rest of the Talos machines. (http://groups.google.com/group/mozilla.dev.planning/msg/402afc2bfd2d65f2). This work is being tracked in https://bugzilla.mozilla.org/show_bug.cgi?id=468680.
This will affect all trees: Firefox (mozilla-central), Firefox3.1 (mozilla-1.9.1), Tracemonkey (tracemonkey), and Mobile (mobile-browser).
One of these requires a full Buildbot master restart – so expect some spurious burning. We’ll do our best to minimize it and get things green ASAP.
If there is any reason why we shouldn’t go ahead with this please e-mail release@mozilla.com.
buildbot & buildbotcustom moved to Mercurial
January 28th, 2009
Both mozilla/tools/buildbotcustom and mozilla/tools/buildbot have now official moved to their new homes in Mercurial, http://hg.mozilla.org/build/buildbotcustom/ and http://hg.mozilla.org/build/buildbot/ respectively. The buildbotcustom CVS module will be deleted at the end of this week. We will be keeping the buildbot one for the time being because we have a Buildbot still using it, but all future work should be done against the Mercurial repository.
Seven (mostly uninteresting) things
January 22nd, 2009
I thought I was going to avoid this meme altogether, but dave managed to tag me before it died out. Here goes:
The Rules
- Link to your original tagger(s) and list these rules in your post.
- Share seven facts about yourself in the post.
Tag seven people at the end of your post by leaving their names and the links to their blogs.Let them know they’ve been tagged.
The Seven Things
- I’ve been a geek my whole life. My earlier memory is playing Wheel Of Fortune and Family Feud on an i286 class machine with DOS 2.0 (maybe 3.0?) and a CGA display.
- I’m a two time high school drop out.
- Before getting my first “computer job” (see below) I worked various jobs including: pizza guy, grocery store stock clerk, ball packer, various assembly line jobs, and exactly one day as a dry cleaning machine operator.
- I have never left North America.
- In high school at one time or another I could have been rightly called the following: wigger, punk rocker, goth, metalhead, hippie, band geek, and computer geek (obvious). Sorry, no photographs are available.
- I was a vegetarian for nearly 5 years until an overwhelming desire for red meat got the best of me.
- I’m engaged to be married on a yet-to-be-determined date.
I think this thing has gone far enough, so I won’t be tagging anyone else.
mozilla/tools/buildbotcustom and mozilla/tools/buildbot moving to Mercurial
January 22nd, 2009
The time has finally come for these two CVS modules to get a better home. Here’s what I’m proposing:
- Early next week I will import these modules (with history) into http://hg.mozilla.org/build/buildbotcustom and http://hg.mozilla.org/build/buildbot.
- On Friday, January 30th, 2009 I will delete mozilla/tools/buildbot and mozilla/tools/buildbotcustom from CVS and put in READMEs pointing to their new homes. I don’t believe there is any reason to keep them around once the new repositories are live. They will only serve to cause confusion.
Moving these will be a change for the better, I believe. It will let us import new versions of Buildbot without the hassle of CVS and in the case of buildbotcustom, let others work on it more easily.
If anyone has objections to this plan please respond to this mozilla.dev.builds post. If I don’t hear anything by Tuesday, January 27th I will proceed with this.
Mozilla Scheduled Downtime – 01/19/2009 – 5am – 7am PST
January 16th, 2009
During this time we will be landing the patches listed on this page:
https://wiki.mozilla.org/ReleaseEngineering:BuildbotMasterChanges#Upcoming_changes
One of these requires a full Buildbot master restart – so expect some spurious burning. We’ll do our best to minimize it and get things green ASAP.
If there is any reason why we shouldn’t go ahead with this please e-mail release@mozilla.com.
Firefox 3.1/3.2 builds no longer reporting codesighs ‘mZ’ metric
January 6th, 2009
bug 358845 pointed out that the ‘mZ’ we report for Codesighs tests is meaningless for Firefox. As such, we have stopped running it. This is just a quick note to let people know not to panic, it’s fine! The ‘Z’ number is still being reported and valid.
Happy DWARF Day!
December 8th, 2008
Today is a great day. bug 421534 has landed (thanks Ted!). From here on in Mac symbols will be generated in DWARF format rather than stabs. This may sound pretty lame and unworthy of a blog post, but our Mac build machines sure are happy about it. Due to a bug in Xcode 3.0/3.1 building Mozilla results in a GCC crash when passing ‘-gstabs’. The fix? Pass ‘–save-temps’. Why’s that so bad, you may ask? Well, when you save all temporary files from a Mozilla build it adds up to quite a bit (20GB for a universal build). There’s also a possibility that this slows us a non-trivial amount.
Disk space has been getting pretty tight with all of these active codelines. Things are looking a little better going forward.

Mozilla Scheduled Downtime – 12/02/2008 – 5am PST – 8am PST
December 1st, 2008
Hi All,
Due to a few reasons we were unable to migrate our Buildbot master to
faster disks yesterday. Instead, we will be doing it tomorrow morning
PST. We will be closing all trees at 5am tomorrow to shut down and
migrate this machine. We expect it to take a couple of hours to complete.
This affects the following trees:
* Firefox
* Firefox3.0
* Firefox3.1
- Ben
ABC meme
November 28th, 2008
a – http://lxr.mozilla.org/mozilla/source/browser/locales/all-locales
b – http://hg.mozilla.org/build/tools
c – http://hg.mozilla.org/build/buildbot-configs/index.cgi/file/tip/mozilla2/config.py
d – https://download.mozilla.org/admin/login.php
e – https://intranet.mozilla.org/index.php?title=Build:Meetings:Latest&action=edit
f – http://tinderbox.mozilla.org/Firefox/
g – https://mail.google.com/mail/
h – http://hrpassport.com/
i – https://build.inventory.mozilla.org/build/
j – http://people.mozilla.org/~johnath/pdb/
k – http://www.cbc.ca/ (WTF?)
l – http://mxr.mozilla.org/mozilla/source/tools/buildbotcustom/l10n/l10n.py
m – http://hg.mozilla.org/mozilla-central/
n – https://nagios.mozilla.org/nagios/cgi-bin/status.cgi?host=all
o – http://osnews.com/
p – http://production-1.9-master.build.mozilla.org:8810/waterfall
q – http://qm-rhel02:2006/
r – http://hg.mozilla.org/build/buildbot-configs/file/tip/mozilla2-staging/release_config.py
s – http://slashdot.org/
t – http://mxr.mozilla.org/mozilla/source/tools/buildbot/buildbot/status/tinderbox.py
u – https://10.2.72.6/ui/ (vmware ESX web UI)
v – http://hg.mozilla.org/build/tools/index.cgi/file/tip/release/version-bump.pl
w – http://wiki.mozilla.org/WeeklyUpdates
x – http://xkcd.com/
y – http://youtube.com/
z – http://www.zipcar.com/reservations