Hi everyone,
I'm trying to write a translation checker, a script that walks all files of a given Mailman translation, searching for inconsistencies such as wrong variable references, missing tags and so on.
I'm doing this because I'm lazy and periodically reviewing and validating a translation is a boring process :)
In attach you can find an early prototype, feel free to mail me complaints, suggestions and requests. If you think it's worth, I could try to generalize and do better exception handling.
At the moment I have 2 problems and I need your advice:
What is the best regexp to use instead of /%\(([^)]+)\)[0-9]*[sd]/ to search for any Python %(variable)s?
Do you know of any existing parser I can use to read mailman.po?
Cheers, Simone
-- Simone Piunno, FerraraLUG - http://members.ferrara.linux.it/pioppo
participants (1)
-
Simone Piunno