[damned-lies] Added word stats variables and methods to FakeSummaryStatistics class
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Added word stats variables and methods to FakeSummaryStatistics class
- Date: Fri, 21 Oct 2011 14:42:01 +0000 (UTC)
commit 351429191144f46f0bf75df0305d3c9a849d0967
Author: Gil Forcada <gforcada gnome org>
Date: Sat Oct 15 21:48:00 2011 +0200
Added word stats variables and methods to FakeSummaryStatistics class
stats/models.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 611d394..d8e6dfe 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -1734,16 +1734,28 @@ class FakeSummaryStatistics(object):
self._fuzzy = 0
self._untranslated = 0
self.partial_po = False
+ self._translated_words = 0
+ self._fuzzy_words = 0
+ self._untranslated_words = 0
def translated(self, scope=None):
return self._translated
+ def translated_words(self, scope=None):
+ return self._translated_words
+
def fuzzy(self, scope=None):
return self._fuzzy
+ def fuzzy_words(self, scope=None):
+ return self._fuzzy_words
+
def untranslated(self, scope=None):
return self._untranslated
+ def untranslated_words(self, scope=None):
+ return self._untranslated_words
+
def trans(self, stat):
self._translated += stat.translated()
self._fuzzy += stat.fuzzy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]