~ubuntu-translations-coordinators/ubuntu-translations/ul10n-stats

Viewing all changes in revision 19.

  • Committer: David Planella
  • Date: 2010-09-28 09:17:47 UTC
  • Revision ID: david.planella@ubuntu.com-20100928091747-itmfigetf875b69o
Fixed the report language order, more OOP-related changes, added logging. Details:

* Fixed the bug whereby in the report the order of languages within the same
  percentage range was lost in rounding. E.g. after rounding if both German and
  Spanish became 99% translated, it did not matter whether one was 98.7 and the
  other one 98.9, they ended up being alphabetically sorted. It turned out that
  this could be solved at the Gviz API level by specifying a number formatter,
  so that no previous rounding is necessary

* Continued the effort to make the program object-oriented. All
  language-related operations are now done in classes. This has brought up the
  benefit to be able to specify whether the list of languages must be fetched
  from Launchpad or from a local text file. Started adding classes for po
  template statistics

* Added logging infrastructure through the standard logging library

* Moved do_lp_login() to common.utils, as it is a generic function that can be
  used by other modules.

* Started adding a mechanism to enable the inclusion of other templates in the
  calculation. The most obvious case is for external translations, and in
  particular for OpenOffice.org. Added a couple of helper functions to obtain a
  pair of potemplate-starts.log and package-stats.log from an OpenOffice.org
  translation tarball.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: