From 75814f227bd884d1a4fc44055ee46408f168b7ae Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 10 Mar 2011 02:44:56 +0100 Subject: [PATCH] fix import l10n stuff in windows_make_bats --- pyfpdb/windows_make_bats.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pyfpdb/windows_make_bats.py b/pyfpdb/windows_make_bats.py index 6b1a58c0..45804899 100755 --- a/pyfpdb/windows_make_bats.py +++ b/pyfpdb/windows_make_bats.py @@ -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: