fix import l10n stuff in windows_make_bats

This commit is contained in:
Steffen Schaumburg 2011-03-10 02:44:56 +01:00
parent 4d1430026b
commit 75814f227b

View File

@ -17,17 +17,8 @@
# create .bat scripts in windows to try out different gtk dirs
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
import L10n
_ = L10n.get_translation()
try: