GoogleCodeIn2012/MsgfmtChecker

From Sugar Labs
< GoogleCodeIn2012
Revision as of 00:28, 26 October 2012 by Cjl (talk | contribs) (Created page with "Our Pootle server is capable of performing a variety of important checks on PO files, catching many error types; however there are still some instances where there are errors ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Our Pootle server is capable of performing a variety of important checks on PO files, catching many error types; however there are still some instances where there are errors in the PO files that fail msgfmt checks and result in problems during attempts to build the program.

This task is to create a Python program that can be added to the administrative tools we use for Pootle. [[1]] and run with these tasks by the nightly Pootle cron job.

The requirements of this program are tha tit traverse the checkouts directory on the Pootle server, and for each PO file it finds, runs msgfmt on that PO file. If there are no errors, nothing is returned. If any result is returned, it should be sent to the translation team in an e-mail alerting them tha there is a PO file that needs attention.