Open main menu

CDOT Wiki β

Changes

Automated localization build tool

667 bytes added, 17:53, 13 October 2007
how to help us!!
* Read through every DTD and Properties file in the current directory with the "Parser.py" file
* Changes the word "color" to "colour" in every DTD file and have it saved
 
== Want to help??? ==
# We have a problem when matching a pattern inside of the DTDs, look below:
re.sub(r'([Cc])olor', r'\1olour', instring)
Changes every appearance of 'Color' or 'color' with 'Colour' and 'colour' (the Canadian wa)
Therefore a line like:
* <!ENTITY colorsDialog.title "Colors">
becomes like this:
* <!ENTITY coloursDialog.title "Colours">
WE DON'T WANT colo'''u'''rsDialog.title!!!
A better regular expression could avoid this but we are not good yet with RegExps (check anlaysis on RegExprs on next section)
 
# We would like to walk into subfolders and make changes in each subfolder; any good python example?
== Project Leader(s) ==
1
edit