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:
c835d85
)
Better locale directory setup.
author
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Jan 2015 19:55:52 +0000
(19:55 +0000)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Mon, 19 Jan 2015 19:56:09 +0000
(19:56 +0000)
crypto-install
patch
|
blob
|
history
diff --git
a/crypto-install
b/crypto-install
index
fa130b9
..
e84baf2
100755
(executable)
--- a/
crypto-install
+++ b/
crypto-install
@@
-18,8
+18,8
@@
if sys.version_info[0] == 2:
return raw_input (prompt)
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 *
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)
return input (prompt)
- def gettext_install ():
- gettext.install ("crypto-install")
+ gettext_install = gettext.install
else:
raise Exception ("Unsupported Python version {}".format (sys.version_info))
else:
raise Exception ("Unsupported Python version {}".format (sys.version_info))
@@
-662,7
+661,7
@@
class CryptoInstall (Tk):
def main ():
def main ():
- gettext_install ()
+ gettext_install ("crypto-install", localedir = os.getenv ("TEXTDOMAINDIR"))
arguments = parse_arguments ()
arguments = parse_arguments ()