Open main menu

CDOT Wiki β

Release 0.2.3 Instructions

Release 0.2.3 for Mozilla Auto l10n (localization) tool

Instructions

  1. Make sure you have Python for your platform:

- We used Python 2.5.1 for Windows (http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi) which comes with an IDE and a shell in which you can eveluate python statements, programs, etc

  1. Once you have it, double click on "l10nMerge.py". Type: "en-GB". Next, it will ask you to press "return"
  2. Now if you check the folder where you are you should see these files:

- "colors - Copy.dtd.bak", "colors.dtd.bak" and "preferences.properties" These files have the same contents as their original files (without the .bak suffix) but with the string "color" changed into "colour"

Description

The tools reads every DTD file and properties file on the current directory, parses it using the parser that comes on Parser.py and makes the changes. The only change right now is the word "color" to "colour", independantly if it is uppercase/lowercase, and singular/plural. The regular expresion handles the return of line and the only makes the changes to the strings associated to an entity, it doesn't modify an entity name

For release 0.2, we want to have: -many regular expressions changes happening at the same time -walk though subfolders and make these changes in every subfolder

FYI, you can get all the subfolders with all the files that have to modified (DTDs, properties and others) 1) Get the l10n tools and testing script and libraries by checking them out: $> cvs -z3 -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/tools/l10n mozilla/testing/tests/l10n 2) This will create a folder below the Mozilla folder called "l10n/en-CA": $> python tools/l10n/l10n.py en-CA

Conclusion: this folder with all the files to be translated will be used to run the 0.2 and see how it works