gettext-ify Anonymise
This commit is contained in:
parent
0f9e35d1fc
commit
b1724437ac
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user