From 4bcc622efaa120cb187321491763f9c7d0a313b2 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Thu, 12 Aug 2010 20:23:36 +0200 Subject: [PATCH] The commented out gettext in fpdb.pyw and HHC should work, but doesnt I tried having those lines in a plain script but same problem - translation file not found --- pyfpdb/HandHistoryConverter.py | 6 +++--- pyfpdb/fpdb.pyw | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyfpdb/HandHistoryConverter.py b/pyfpdb/HandHistoryConverter.py index 37ba831f..2adf6f13 100644 --- a/pyfpdb/HandHistoryConverter.py +++ b/pyfpdb/HandHistoryConverter.py @@ -41,9 +41,9 @@ import Hand from Exceptions import FpdbParseError import Configuration -import gettext -gettext.install('fpdb') - +#import gettext +#trans=gettext.translation("fpdb", "/home/steffen/poker/fpdb-dev/pyfpdb/locale", languages=["de"]) +#trans.install() import pygtk import gtk diff --git a/pyfpdb/fpdb.pyw b/pyfpdb/fpdb.pyw index 8553ee72..07cf603f 100755 --- a/pyfpdb/fpdb.pyw +++ b/pyfpdb/fpdb.pyw @@ -20,6 +20,10 @@ import sys import re import Queue +#import gettext +#trans=gettext.translation("fpdb", "locale", ["en_GB"]) +#trans.install() + # if path is set to use an old version of python look for a new one: # (does this work in linux?) if os.name == 'nt' and sys.version[0:3] not in ('2.5', '2.6') and '-r' not in sys.argv: