X-Git-Url: http://repo.macrolet.net/gitweb/?p=crypto-install.git;a=blobdiff_plain;f=crypto-install;fp=crypto-install;h=e84baf25fce007d68dde94a25f3b8b8d85b55563;hp=fa130b9b77e0c2971c4ceb5b86d7cddb28852793;hb=6ec266e4b6d2573b13f9bea77f0fdf939b661909;hpb=c835d852bccb49ade2592a53bede3b4202395e11 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 ()