GNOME Bugzilla – Bug 476337
Updated statistics: POTs provided by developer ignored
Last modified: 2008-11-10 09:00:16 UTC
Please describe the problem: Statistics for modules that have errors are calculated using the last known good POT file instead of the one provided by the developer. This means that modules that don't support intltool show outdated statistics, even if the developer gives a new POT file each time. Ideally all modules should use intltool, but, unfortunately, they don't. :/ Steps to reproduce: 1. Have DL track a module with an error or not built with intltool support 2. Commit a change to the POT file Actual results: DL shows "old" statistics Expected results: DL to identify that the POT file has changed, so presumably the developer has provided translators with the new POT. Does this happen every time? Other information: Code that checks for this is at lines 209 and 214: http://svn.gnome.org/viewcvs/damned-lies/trunk/update-stats.py?annotate=427#l208 Changing the OR to an AND produces stats favouring the developer-provided POT.
With the new Damned Lies, there is a pot_method field in the Domain class that allows specifiying an alternate pot building method (used now for D-L itself). If we fill this field with a sort of noop command, D-L should use the existing pot file to generate stats. Logic is in function domain.generate_pot_file I've not tested this on a real module but it should work.