projects
/
edward.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0233aa5
)
clarified some code
author
Andrew Engelbrecht
<sudoman@ninthfloor.org>
Tue, 28 Jul 2015 16:46:34 +0000
(12:46 -0400)
committer
Andrew Engelbrecht
<sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:41 +0000
(13:28 -0500)
edward
patch
|
blob
|
blame
|
history
diff --git
a/edward
b/edward
index 39f104d4680d80b126670f16267d85498c497253..8853564b0ed9d8288f34ef0ef22e2c45e08a5b15 100755
(executable)
--- a/
edward
+++ b/
edward
@@
-1090,15
+1090,14
@@
def import_lang(email_to):
this file is the 'replies' dictionary.
"""
+ lang_module = "lang.en"
+
if email_to != None:
for lang in langs:
if "edward-" + lang in email_to:
- lang = "lang." + re.sub('-', '_', lang)
- language = importlib.import_module(lang)
-
- return language
+ lang_module = "lang." + re.sub('-', '_', lang)
- return importlib.import_module(
"lang.en"
)
+ return importlib.import_module(
lang_module
)
def generate_encrypted_mime (plaintext, email_to, email_subject, encrypt_to_key,