From: Olof-Joachim Frahm Date: Mon, 19 Jan 2015 20:28:01 +0000 (+0000) Subject: Set locale initially. X-Git-Tag: 0.1.0~2^2~7 X-Git-Url: http://repo.macrolet.net/gitweb/?p=crypto-install.git;a=commitdiff_plain;h=c454a9ccca4e24c4e2c05b69c495298c63612fbe Set locale initially. --- diff --git a/crypto-install b/crypto-install index e84baf2..6fb3a7c 100755 --- a/crypto-install +++ b/crypto-install @@ -2,8 +2,8 @@ # -*- mode: python; coding: utf-8; -*- -import argparse, errno, gettext, itertools, os, re, readline, subprocess, \ - sys, tempfile, textwrap, threading +import argparse, errno, gettext, itertools, locale, os, re, readline, \ + subprocess, sys, tempfile, textwrap, threading if sys.version_info[0] == 2: @@ -661,6 +661,8 @@ class CryptoInstall (Tk): def main (): + locale.setlocale (locale.LC_ALL, "") + gettext_install ("crypto-install", localedir = os.getenv ("TEXTDOMAINDIR")) arguments = parse_arguments ()