From: Olof-Joachim Frahm Date: Mon, 19 Jan 2015 19:55:52 +0000 (+0000) Subject: Better locale directory setup. X-Git-Tag: 0.1.0~2^2~8 X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=6ec266e4b6d2573b13f9bea77f0fdf939b661909;p=crypto-install.git Better locale directory setup. --- diff --git a/crypto-install b/crypto-install index fa130b9..e84baf2 100755 --- a/crypto-install +++ b/crypto-install @@ -18,8 +18,8 @@ if sys.version_info[0] == 2: return raw_input (prompt) - def gettext_install (): - gettext.install ("crypto-install", unicode = True) + def gettext_install (*args, **kwargs): + gettext.install (*args, unicode = True, **kwargs) elif sys.version_info[0] > 2: from tkinter import * from tkinter.messagebox import * @@ -32,8 +32,7 @@ elif sys.version_info[0] > 2: return input (prompt) - def gettext_install (): - gettext.install ("crypto-install") + gettext_install = gettext.install else: raise Exception ("Unsupported Python version {}".format (sys.version_info)) @@ -662,7 +661,7 @@ class CryptoInstall (Tk): def main (): - gettext_install () + gettext_install ("crypto-install", localedir = os.getenv ("TEXTDOMAINDIR")) arguments = parse_arguments ()