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
This commit is contained in:
steffen123 2010-08-12 20:23:36 +02:00
parent d7f73bf691
commit 4bcc622efa
2 changed files with 7 additions and 3 deletions

View File

@ -41,9 +41,9 @@ import Hand
from Exceptions import FpdbParseError from Exceptions import FpdbParseError
import Configuration import Configuration
import gettext #import gettext
gettext.install('fpdb') #trans=gettext.translation("fpdb", "/home/steffen/poker/fpdb-dev/pyfpdb/locale", languages=["de"])
#trans.install()
import pygtk import pygtk
import gtk import gtk

View File

@ -20,6 +20,10 @@ import sys
import re import re
import Queue 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: # if path is set to use an old version of python look for a new one:
# (does this work in linux?) # (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: if os.name == 'nt' and sys.version[0:3] not in ('2.5', '2.6') and '-r' not in sys.argv: