After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 476337 - Updated statistics: POTs provided by developer ignored
Updated statistics: POTs provided by developer ignored
Status: RESOLVED FIXED
Product: damned-lies
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: damned-lies Maintainer(s)
damned-lies Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-09-12 20:37 UTC by Dimitris Glezos
Modified: 2008-11-10 09:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dimitris Glezos 2007-09-12 20:37:50 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.
Comment 1 Claude Paroz 2008-11-10 09:00:16 UTC
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.