projects
/
crypto-install.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ec266e
)
Set locale initially.
author
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Jan 2015 20:28:01 +0000
(20:28 +0000)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Jan 2015 20:28:01 +0000
(20:28 +0000)
crypto-install
patch
|
blob
|
history
diff --git
a/crypto-install
b/crypto-install
index
e84baf2
..
6fb3a7c
100755
(executable)
--- a/
crypto-install
+++ b/
crypto-install
@@
-2,8
+2,8
@@
# -*- mode: python; coding: utf-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:
if sys.version_info[0] == 2:
@@
-661,6
+661,8
@@
class CryptoInstall (Tk):
def main ():
def main ():
+ locale.setlocale (locale.LC_ALL, "")
+
gettext_install ("crypto-install", localedir = os.getenv ("TEXTDOMAINDIR"))
arguments = parse_arguments ()
gettext_install ("crypto-install", localedir = os.getenv ("TEXTDOMAINDIR"))
arguments = parse_arguments ()