define _ func

This commit is contained in:
sqlcoder 2010-08-21 23:24:25 +01:00
parent c8f25ad162
commit 2ae2d0d277

View File

@ -40,6 +40,18 @@ import win32api
import win32con
import win32security
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
# FreePokerTools modules
from TableWindow import Table_Window