From 6ec266e4b6d2573b13f9bea77f0fdf939b661909 Mon Sep 17 00:00:00 2001 From: Olof-Joachim Frahm Date: Mon, 19 Jan 2015 19:55:52 +0000 Subject: [PATCH] Better locale directory setup. --- crypto-install | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 () -- 1.7.10.4