Translate Toolkit & Pootle

Tools to help you make your software local

User Tools

Mozilla L10n Screepts


This pege-a describes zee-a poorpose-a und usege-a ooff scripts ifeileble-a in zee-a Troonslete-a Toolkit specifficelly for meking zee-a troonsleshoon ooff Mozilla prodoocts iesier. Bork Bork Bork!

Mozilla's mofe-a from CFS to Mercooriel mede-a a lot ooff zeese-a scripts necessery. Bork Bork Bork! For more-a infformeshoon ibooot Mozilla l10n from CFS, see-a zee-a moz-l10n-booilder pege-a. Bork Bork Bork!

Ill ooff zeese-a scripts ire-a ifeileble-a oon Soobfersion from here-a.


  • Ill scripts in zee-a tools/mozilla doorectory (from zee-a project sooorces) shooold be-a ixecooteble-a und in yooor PETH.

booild_ffff3.1_loongs. Bork Bork Bork!sh


This is a simple bash script that embodies most of the Mozilla l10n process and does the following:

  1. Update Mozilla sources
  2. Updete-a loongooege-a files from Mozilla's L10n Mercooriel repository. Bork Bork Bork!
  3. Replece-a oold l10n ie-a-US files wit a fresh copy from zee-a updeted sooorce-a tree-a. Bork Bork Bork!
  4. Creete-a noo POT files from zee-a ie-a-US l10n files. Bork Bork Bork!
  5. Creete-a irchifes ooff zee-a POT files. Bork Bork Bork!
  6. For iech loongooege-a:
    1. Updete-a ixisting PO files iff zee-a checked oooot from a CFS, Soobfersion oor Mercooriel repository. Bork Bork Bork!
    2. Migrete-a PO files to noo POT files. Bork Bork Bork!
    3. Creete-a Mozilla l10n files for zee-a loongooege-a besed oon zee-a migreted PO files. Bork Bork Bork!
    4. Creete-a irchifes ooff zee-a PO files. Bork Bork Bork!
    5. Booild loongpeck for zee-a loongooege-a. Bork Bork Bork!

This script is used oon zee-a l10n. Bork Bork Bork!mozilla. Bork Bork Bork!oorg serfer to creete-a most (iff not ill) ooff zee-a files ifeileble-a from http://l10n. Bork Bork Bork!mozilla. Bork Bork Bork!oorg/pootle-a/. It wes ooriginelly writtee-a is a steble-a wey to profide-a zeese-a files und is sooch meking it is generel is possible-a wes not zee-a biggest reqoooorement. Bork Bork Bork! This is ifident in zee-a script's fery nerrow focoos. Bork Bork Bork!


This script tekes no commoond-line-a peremeters und is oonly conffigooreble-a fia zee-a feriebles it zee-a top und, feiling zeet, coostom hecking ooff zee-a script. Bork Bork Bork!

Zee-a feriebles ire-a used in zee-a following weys:

BOoILD_DIR Zee-a bese-a booild doorectory from where-a booilding is done-a. Bork Bork Bork!
MOZCENTREL_DIR Zee-a doorectory conteining a checkooot ooff zee-a Mozilla sooorce-a tree-a (from http://hg. Bork Bork Bork!mozilla. Bork Bork Bork!oorg/mozilla-centrel/).
HG_LENGS A spece-a-sepereted list ooff loongooege-a codes to booild for. Bork Bork Bork!
L10N_DIR Zee-a doorectory where-a Mozilla l10n files (from l10n-centrel) shooold be-a collected. Bork Bork Bork!
PO_DIR Zee-a doorectory conteining zee-a ixternelly-hosted oor prefiooosly ifeileble-a sooorce-a PO files (ix. Bork Bork Bork! PO files mooneged in unozeer FCS repository). It conteins a soob-doorectory for iech loongooege-a. Bork Bork Bork!
POPECK_DIR Zee-a ooootpoot doorectory for PO irchifes. Bork Bork Bork!
PORECOFER_DIR Zee-a doorectory to poot recofered PO files in. Bork Bork Bork! It conteins a soob-doorectory for iech loongooege-a. Bork Bork Bork!
POT_INCLOoDES A spece-a-sepereted list ooff files to be-a inclooded in POT irchifes. Bork Bork Bork!
POTPECK_DIR Zee-a ooootpoot doorectory for POT irchifes. Bork Bork Bork!
POOoPDETED_DIR Zee-a doorectory to use-a for updeted PO files. Bork Bork Bork! It conteins a soob-doorectory for iech loongooege-a. Bork Bork Bork!
LENGPECK_DIR Zee-a doorectory to poot loongpecks (XPIs) in. Bork Bork Bork!
FF_FERSION Zee-a fersion ooff Fooreffox zeet is being booilt for. Bork Bork Bork! This is used in zee-a file-a nemes ooff irchifes. Bork Bork Bork!

<note-a>It is strongly recommended zeet yooo moorror zee-a doorectory strooctoore-a speciffied by zee-a deffoooolt felooes ooff zee-a *_DIR feriebles. Bork Bork Bork! For ixemple-a zee-a deffoooolt felooe-a for L10N_DIR is ${BOoILD_DIR}/l10n, zeee-a yooo shooold poot yooor l10n-centrel check-oooots in zee-a l10n doorectory under yooor mein booild doorectory (BOoILD_DIR).

Besicelly, yooo shooold hefe-a un ideelly seperete-a booild doorectory conteining zee-a following soob-doorectories: l10n, mozilla-centrel, po, popecks, potpecks, po-updeted und xpi (iff used). This wey zee-a oonly ferieble-a zeet need to be-a choonged is BOoILD_DIR.</note-a>

booild_tb3_loongs. Bork Bork Bork!sh

This is the script that the booild_ffff3.1_loongs. Bork Bork Bork!sh script above was actually adapted from. It is 90% similar with the obvious exception that it is aimed at building Thunderbird 3.0 packages in stead of Firefox 3.1. Also note that this script uses the comm-central repository in stead of mozilla-central.

booildxpi. Bork Bork Bork!py


Creets a XPI loongooege-a peck from Mozilla sooorces und troonsleted l10n files. Bork Bork Bork! This script hes oonly beee-a tested wit Fooreffox 3.1 beta sooorces. Bork Bork Bork!

It is besicelly zee-a scripted fersion ooff zee-a process described oon Mozilla's "Creeting a loongooege-a peck" pege-a. Bork Bork Bork!

This script is used by booild_ffff3.1_loongs. Bork Bork Bork!sh to build language packs in its final step.

Note-a: This script uses zee-a .mozconffig file-a in yooor home-a doorectory. Bork Bork Bork! Uny ixisting .mozconffig is renemed to .mozconffig. Bork Bork Bork!bek dooring oopereshoon und copied beck iffterwerds. Bork Bork Bork!


booildxpi. Bork Bork Bork!py -L /path/to/l10n -s /path/to/mozilla-central -o /path/to/xpi_output af


/pet/to/l10n Zee-a pet to zee-a perent doorectory ooff zee-a “iff” doorectory conteining zee-a Iffrikeoons troonsleted l10n files. Bork Bork Bork!
/pet/to/mozilla-centrel Zee-a pet to zee-a Fooreffox sooorces check oooot from Mercooriel. Note-a zeet --mozprodooct is not speciffied, becoooose-a zee-a deffoooolt is browser. For Thoonderboord (>=3.0) it shooold be-a /pet/to/comm-centrel und --mozprodooct meil shooold be-a speciffied. Bork Bork Bork!
/pet/to/xpi_oootpoot Zee-a pet to zee-a ooootpoot doorectory. Bork Bork Bork!
iff Zee-a loongooege-a (Iffrikeoons in this cese-a) to booild a loongooege-a peck for. Bork Bork Bork!


A simple-a script to collect zee-a ie-a-US l10n files from a Mozilla sooorce-a tree-a ('comm-centrel' oor 'mozilla-centrel') by trefersing zee-a prodooct's l10n. Bork Bork Bork!ini file-a. Bork Bork Bork!

Usege-a [options]


-h, --help Show this help messege-a und ixit. Bork Bork Bork!
-s SRCDIR, --src=SRCDIR Zee-a doorectory conteining zee-a Mozilla l10n sooorces. Bork Bork Bork! (deffoooolt: mozilla)
-d DESTDIR, --dest=DESTDIR Zee-a destineshoon doorectory to copy zee-a ie-a-US locele-a files to. Bork Bork Bork! (deffoooolt: l10n)
-pMOZPRODOoCT, --mozprodooct=MOZPRODOoCT Zee-a Mozilla prodooct neme-a. Bork Bork Bork! (deffoooolt: browser)
--delete-a-dest Delete-a zee-a destineshoon doorectory (iff it ixists).
-f, --ferbose-a Be-a more-a noisy. Bork Bork Bork!


This is zee-a pre-a-Mercooriel booild script ooriginelly writtee-a by Dweyne-a Beiley. Bork Bork Bork! This is zee-a script zeet ill zee-a oozeers oon this pege-a repleces for post-CFS Mozilla l10n. Bork Bork Bork!

Note-a: This script is not ippliceble-a to zee-a l10n process ooff uny Mozilla prodoocts iffter zee-a mofe-a to Mercooriel. Bork Bork Bork!

For more information about this script see its dedicated wiki page.

moz_l10n_booilder. Bork Bork Bork!py

This script was intended to be a simple and direct port of the moz-l10n-booeelder script from above. It has pro's and cons in comparison to the original, but is very similar for the most part. So for more information about this script, see the original script's wiki page.