From: <keo...@us...> - 2007-02-28 00:23:36
|
Revision: 5188 http://svn.sourceforge.net/translate/?rev=5188&view=rev Author: keosophon Date: 2007-02-27 16:23:36 -0800 (Tue, 27 Feb 2007) Log Message: ----------- show status in user-easy understanding Modified Paths: -------------- src/trunk/pootling/modules/Operator.py src/trunk/pootling/modules/Status.py Modified: src/trunk/pootling/modules/Operator.py =================================================================== --- src/trunk/pootling/modules/Operator.py 2007-02-27 14:34:15 UTC (rev 5187) +++ src/trunk/pootling/modules/Operator.py 2007-02-28 00:23:36 UTC (rev 5188) @@ -24,10 +24,8 @@ from translate.misc import quote from translate.storage import poheader from translate.storage import xliff -from translate.misc import wStringIO import pootling.modules.World as World from pootling.modules.Status import Status -from translate.search import match import os, sys import __version__ import pickleTM @@ -78,7 +76,7 @@ # filter flags self.filter = World.filterAll # get status for units - self.status = Status(self.store) + self.status = Status() self.emitStatus() self.filteredList = [] @@ -98,11 +96,14 @@ self.emit(QtCore.SIGNAL("newUnits"), self.filteredList) def emitStatus(self): - total = self.store.translated_unitcount() + self.store.untranslated_unitcount() + self.store.fuzzy_units() + '''show total of messages in a file, fuzzy, translated messages and untranslate messages which are not fuzzy. + + ''' + total = self.store.translated_unitcount() + self.store.untranslated_unitcount() statusString = "Total: " + str(total) + " | " + \ "Fuzzy: " + str(self.store.fuzzy_units()) + " | " + \ "Translated: " + str(self.store.translated_unitcount()) + " | " + \ - "Untranslated: " + str(self.store.untranslated_unitcount()) + "Untranslated: " + str(self.store.untranslated_unitcount() - self.store.fuzzy_units()) self.emit(QtCore.SIGNAL("currentStatus"), statusString) def emitUnit(self, unit): Modified: src/trunk/pootling/modules/Status.py =================================================================== --- src/trunk/pootling/modules/Status.py 2007-02-27 14:34:15 UTC (rev 5187) +++ src/trunk/pootling/modules/Status.py 2007-02-28 00:23:36 UTC (rev 5188) @@ -22,8 +22,6 @@ class Status: # FIXME: toggle unit's fuzzy is not working - def __init__(self, store): - self.store = store def markFuzzy(self, unit, fuzzy): unit.markfuzzy(fuzzy) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |