add missing gettext imports, gettextify TournamentTracker.py

This commit is contained in:
steffen123
2010-08-15 23:23:17 +02:00
parent b08cb18c0e
commit aacfb61d3b
3 changed files with 51 additions and 15 deletions
+12
View File
@@ -24,6 +24,18 @@ import sys
from HandHistoryConverter import *
from decimal import Decimal
import locale
lang=locale.getdefaultlocale()[0][0:2]
if lang=="en":
def _(string): return string
else:
import gettext
try:
trans = gettext.translation("fpdb", localedir="locale", languages=[lang])
trans.install()
except IOError:
def _(string): return string
# PokerStars HH Format
class PokerStars(HandHistoryConverter):