From c454a9ccca4e24c4e2c05b69c495298c63612fbe Mon Sep 17 00:00:00 2001 From: Olof-Joachim Frahm Date: Mon, 19 Jan 2015 20:28:01 +0000 Subject: [PATCH] Set locale initially. --- crypto-install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 () -- 1.7.10.4