gettext-ify Anonymise

This commit is contained in:
steffen123 2010-08-13 06:03:15 +02:00
parent 0f9e35d1fc
commit b1724437ac

View File

@ -23,6 +23,10 @@ import HandHistoryConverter
import Configuration
import sys
import gettext
trans = gettext.translation("fpdb", localedir="locale", languages=["de_DE"])
trans.install()
(options, argv) = Options.fpdb_options()
config = Configuration.Config()
@ -40,13 +44,13 @@ if os.path.exists(options.infile):
filecontents = in_fh.read()
in_fh.close()
else:
print "Could not find file %s" % options.infile
print _("Could not find file %s") % options.infile
exit(1)
m = hhc.re_PlayerInfo.finditer(filecontents)
outfile = options.infile+".anon"
print "Output being written to", outfile
print _("Output being written to"), outfile
savestdout = sys.stdout
fsock = open(outfile,"w")