fix import l10n stuff in windows_make_bats
This commit is contained in:
parent
4d1430026b
commit
75814f227b
|
@ -17,17 +17,8 @@
|
||||||
|
|
||||||
# create .bat scripts in windows to try out different gtk dirs
|
# create .bat scripts in windows to try out different gtk dirs
|
||||||
|
|
||||||
import locale
|
import L10n
|
||||||
lang=locale.getdefaultlocale()[0][0:2]
|
_ = L10n.get_translation()
|
||||||
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
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user