From 4d1430026bb3b60d55499d1aa25365f45b1e6498 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 10 Mar 2011 02:44:40 +0100 Subject: [PATCH] fix some gettextifications --- pyfpdb/PokerStarsToFpdb.py | 6 +++--- pyfpdb/WinTables.py | 2 +- pyfpdb/fpdb.pyw | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 060ad85c..5d5d271d 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -208,7 +208,7 @@ class PokerStars(HandHistoryConverter): info['sb'] = self.Lim_Blinds[mg['BB']][0] info['bb'] = self.Lim_Blinds[mg['BB']][1] except KeyError: - log.error(_("determineGameType: Lim_Blinds has no lookup for '%s'" % mg['BB'])) + log.error(_("determineGameType: Lim_Blinds has no lookup for '%s'") % mg['BB']) log.error(_("determineGameType: Raising FpdbParseError")) raise FpdbParseError(_("Lim_Blinds has no lookup for '%s'") % mg['BB']) @@ -261,8 +261,8 @@ class PokerStars(HandHistoryConverter): elif info[key].find("FPP")!=-1: hand.buyinCurrency="PSFP" else: - #FIXME: handle other currencies, FPP, play money - raise FpdbParseError(_("Failed to detect currency: '%s'" % info[key])) + #FIXME: handle other currencies, play money + raise FpdbParseError(_("Failed to detect currency: '%s'") % info[key]) info['BIAMT'] = info['BIAMT'].strip(u'$€FPP') diff --git a/pyfpdb/WinTables.py b/pyfpdb/WinTables.py index 5b3b4a54..5fc1a491 100644 --- a/pyfpdb/WinTables.py +++ b/pyfpdb/WinTables.py @@ -78,7 +78,7 @@ class Table(Table_Window): try: if self.window == None: - log.error(_("Window %s not found. Skipping." % self.search_string)) + log.error(_("Window %s not found. Skipping.") % self.search_string) return None except AttributeError: log.error(_("self.window doesn't exist? why?")) diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 6581faa4..208ba18e 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -457,11 +457,11 @@ class fpdb: if columnNumber==0: pass else: - label=gtk.Label(_("column %d" % columnNumber)) + label=gtk.Label(_("column %d") % columnNumber) table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) label.show() elif columnNumber==0: - label=gtk.Label(_("row %d" % rowNumber)) + label=gtk.Label(_("row %d") % rowNumber) table.attach(child=label, left_attach=columnNumber, right_attach=columnNumber+1, top_attach=rowNumber, bottom_attach=rowNumber+1) label.show() else: