fix some gettextifications

This commit is contained in:
Steffen Schaumburg 2011-03-10 02:44:40 +01:00
parent 8bec7644ef
commit 4d1430026b
3 changed files with 6 additions and 6 deletions

View File

@ -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')

View File

@ -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?"))

View File

@ -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: