add locale import to interlocks

This commit is contained in:
steffen123 2010-08-25 06:14:26 +02:00
parent 33621aab48
commit c73e5b6d9b

View File

@ -10,6 +10,18 @@ import time
import signal import signal
import base64 import base64
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
InterProcessLock = None InterProcessLock = None
""" """