From 8abfff4cc01e5a09892205b0ef505783dfa72235 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Sun, 15 Aug 2010 19:46:10 +0200 Subject: [PATCH] gettextify PS Summary, add note about py2exe --- pyfpdb/PokerStarsSummary.py | 4 ++-- pyfpdb/py2exe_setup.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index 347536a9..30421ea2 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -69,7 +69,7 @@ class PokerStarsSummary(TourneySummary): elif lines[1].find("FPP")!=-1: self.currency="PSFP" else: - raise FpdbParseError("didn't recognise buyin currency in:"+lines[1]) + raise FpdbParseError(_("didn't recognise buyin currency in:")+lines[1]) if self.currency=="USD" or self.currency=="EUR": result=self.re_BuyInFee.search(lines[1]) @@ -109,7 +109,7 @@ class PokerStarsSummary(TourneySummary): useET=False result=self.re_DateTime.search(lines[currentLine]) if not result: - print "in not result starttime" + print _("in not result starttime") useET=True result=self.re_DateTimeET.search(lines[currentLine]) result=result.groupdict() diff --git a/pyfpdb/py2exe_setup.py b/pyfpdb/py2exe_setup.py index a836ed76..9dbda8dd 100644 --- a/pyfpdb/py2exe_setup.py +++ b/pyfpdb/py2exe_setup.py @@ -69,6 +69,7 @@ Py2exe script for fpdb. # See walkthrough in packaging directory for versions used # Updates to this script have broken python 2.5 compatibility (gio module, msvcr71 references now msvcp90) +# steffeN: Doesnt seem necessary to gettext-ify this, but feel free to if you disagree import os import sys