GNOME Bugzilla – Bug 661869
Display words on po file statistics pages
Last modified: 2011-10-21 15:25:49 UTC
Finally I got some time to make the August work (adding word support on statistics) useful :) See attached 7 patches (one of them can be applied alone) and 2 screenshots of the results. Cheers,
Created attachment 199082 [details] [review] (1/7) Show POT total words next to total strings
Created attachment 199083 [details] [review] (2/7) Just make one call to pot_size on PoFile.{tr,fu,un}_percentage methods That's the one that can be applied alone
Created attachment 199085 [details] [review] (3/7) Added PoFile.{tr,fu,un}_word_percentage methods cloning PoFile.{tr,fu,un}_percentage ones
Created attachment 199086 [details] [review] (4/7) Added word statis variables and methods to FakeSummaryStatistics class
Created attachment 199087 [details] [review] (5/7) More word methods. Now on Statistics class: {translated,fuzzy,untranslated}_words and {tr,fu,un}_word_percentage methods
Created attachment 199088 [details] [review] (6/7) Registered the filters for word po file statistics
Created attachment 199089 [details] [review] (7/7) Finally update the template and CSS to show the word statistics on the PO file details
Created attachment 199090 [details] Screenshot showing how the words statistics are displayed
Created attachment 199091 [details] Screenshot showing how the word statistics are displayed on the documentation
Created attachment 199108 [details] Screenshot showing how the word statistics are displayed on the documentation Sorry I uploaded the same image twice. This was the other screenshot I wanted to upload.
Review of attachment 199088 [details] [review]: A little too much code redundancy, but well some refactoring might be applied later.
Thanks Gil for this work, and for the care you took in separating patches.
I usually do lots of small commits and "git rebase -i" them all the time. Thanks a lot for reviewing them! Pushed!!
*** Bug 656969 has been marked as a duplicate of this bug. ***
This is now in production.