gettext-ify GuiPositionalStats.py

This commit is contained in:
steffen123 2010-08-14 18:56:28 +02:00
parent c87c0f0f9d
commit 215bc5b0f3

View File

@ -132,7 +132,7 @@ class GuiPositionalStats (threading.Thread):
def toggleCallback(self, widget, data=None):
# print "%s was toggled %s" % (data, ("OFF", "ON")[widget.get_active()])
self.activesite = data
print "DEBUG: activesite set to %s" %(self.activesite)
print _("DEBUG: activesite set to %s") %(self.activesite)
def refreshStats(self, widget, data):
try: self.stats_vbox.destroy()
@ -163,13 +163,13 @@ class GuiPositionalStats (threading.Thread):
if not sitenos:
#Should probably pop up here.
print "No sites selected - defaulting to PokerStars"
print _("No sites selected - defaulting to PokerStars")
sitenos = [2]
if not playerids:
print "No player ids found"
print _("No player ids found")
return
if not limits:
print "No limits found"
print _("No limits found")
return
self.createStatsTable(vbox, playerids, sitenos, limits, seats, dates)
@ -318,7 +318,7 @@ class GuiPositionalStats (threading.Thread):
vbox.show_all()
self.db.rollback()
print "Positional Stats page displayed in %4.2f seconds" % (time() - starttime)
print _("Positional Stats page displayed in %4.2f seconds") % (time() - starttime)
#end def fillStatsFrame(self, vbox):
def refineQuery(self, query, playerids, sitenos, limits, seats, dates):