From 2d90fbf3b6a21b7c4000ea694294759b99324130 Mon Sep 17 00:00:00 2001 From: Worros Date: Tue, 28 Sep 2010 11:41:27 +0800 Subject: [PATCH] Winamax: L10n change --- pyfpdb/WinamaxToFpdb.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pyfpdb/WinamaxToFpdb.py b/pyfpdb/WinamaxToFpdb.py index ff644515..c2b23271 100755 --- a/pyfpdb/WinamaxToFpdb.py +++ b/pyfpdb/WinamaxToFpdb.py @@ -18,6 +18,9 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ######################################################################## +import L10n +_ = L10n.get_translation() + import sys import exceptions @@ -28,18 +31,6 @@ import Configuration from HandHistoryConverter import * from decimal import Decimal import time -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 # Winamax HH Format