Friday, September 28, 2007

How to name our project: "auto l10n" tool

Our project has changed from last week to this one.
If I was to give a codename for it, it would be "auto l10n" tool

Last week we were looking into doing an en-CA localization of Firefox, but we found out through Axel that it would be more productive for the Mozilla community to create an automated localization build tool. I will explain why:
Differences between en-US and en-GB are little (check Bug 345039) and they don't want us to "fork" en-GB to make an en-CA localization.

This tool in mind, that is not decided the language or how to do it (e.g. perl, python, makefiles, ...) has been discussed during the week between the three of us (Rueen, Vince, myself), our OS professor David Humphrey, Axel, Mic, Chris Tyler (OS professor at Seneca), shaver, dynamis (from Japan), Chris Hofman, Kohei Yoshino (from Japan), John O'Duinn, Pascal Chevrel (Axel CCed for different reasons)

It seems that Dynamis has been working on something that Axel thinks that he: "
sees a chance for code-reuse here with the merge-l10n work you're working on". TODO find out what is Dynamis working on

Axel wrote this (I've added the bolding and the (??) symbols):
Variants of existing localizations should
- make it easy to share bug-fixes between the variants, in particular,
create a joint development team
- assist in a joint support infrastructure, think SUMO(??). For all users of
Spanish localizations, for example, we should build one support forum.
- consist of a minimal set of information describing the changes
- be able to create a localization to be used for a localized build
automatically
He wrote few pages of technical information that I still have to diggest and by this weekend I should be able to talk about our 0.1 milestone for the project

Monday, September 24, 2007

en-CA team

I have added to my blog's menu, the two blogs of the other team members by adding their feeds.

We are going to have a meeting with Dave Humphrey (our professor) and Michal (she works in the Toronto office and wrote some localization tutorials) in the afternoon that will bring some light into the project

Friday, September 21, 2007

Session 5 - build ff debug mode in Windows XP computer

I assumed that my experience on the spring about building the fox was enough, therefore I didn't worry too much to do this time, but I decided to have multiple mozconfig files and I have seen that the build in my windows vista doesn't work properly.

Now, I'm gone to my brothers XP computer and I have done this:
  • Installed MS Visual C++ Express edition
  • Installed Windows 2003 SP SDK
  • Installed Mozilla Build 1.1
I've run msvc8.bat and run these commands:
  • cd /c/
  • mkdir ff
  • cd ff
  • cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
  • time make -f client.mk checkout MOZ_CO_PROJECT=browser // 11 min and 27 sec
  • vi .mozconfig
  • # mozconfig file for Firefox in debug mode, disable optimization
    # and using shared libraries instead of static

    mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../ff-debug-@CONFIG-GUESS@

    # this line includes two commands that appear on
    # http://mxr.mozilla.org/mozilla/source/browser/config/mozconfig
    # it adds MOZ_CO_PROJECT=browser and enable app = browser
    . $topsrcdir/browser/config/mozconfig

    ac_add_options --disable-optimize
    ac_add_options --enable-debug
    ac_add_options --disable-static --enable-shared
  • time make -f client.mk checkout // 5 min; I don't have to type MOZ_CO_PROJECT since it is defined in the .mozconfig - Last checkout to see if I've the latest code
  • Before I build (instructions )
  • time make -f client.mk build // 81min (Amd Sempron 2600+, 1,6Ghz, 768MBRam)
Let's run the ff3 in debug mode:
  • export XPCOM_DEBUG=warn
  • /c/ff/mozilla/ff-debug-/dist/bin/firefox.exe -Profilemanager -no-remote
  • Create a new profile: development
  • Select "OK", few error messages and minefield is running

Another things that I have learnt:
  • I could download a tar ball (source code compressed into .tar.gz extension) and build from there
  • For trunk builds, you can simply run make package in your object directory to create a packaged build. This will create a zip or tar.gz file in objdir/dist which you can then unpack anywhere.
  • To build a Windows installer, simply use make installer in your object directory.