[gnome-keysign] util: translate email title and body (#62)



commit 7bb22e5decef48ff0ce66bf2a9103883e1c12c8c
Author: Aram <aramharoyan gmail com>
Date:   Wed Oct 3 15:58:40 2018 +0400

    util: translate email title and body (#62)
    
    * Update util.py
    
    * Update util.py
    
    * Update util.py

 keysign/util.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/keysign/util.py b/keysign/util.py
index 68f5353..9b75bd7 100755
--- a/keysign/util.py
+++ b/keysign/util.py
@@ -41,6 +41,8 @@ import dbus
 from wormhole._wordlist import PGPWordList
 from _dbus_bindings import BUS_DAEMON_NAME, BUS_DAEMON_PATH, BUS_DAEMON_IFACE
 import gi
+from i18n import _
+
 gi.require_version('Gtk', '3.0')
 from gi.repository import Gtk, Gdk, GLib
 
@@ -201,8 +203,8 @@ def send_email(to, subject=None, body=None, files=None):
     log.error("An error occurred trying to compose the email")
 
 
-SUBJECT = 'Your signed key $fingerprint'
-BODY = '''Hi $uid,
+SUBJECT = _('Your signed key $fingerprint')
+BODY = _('''Hi $uid,
 
 
 I have just signed your key
@@ -214,7 +216,7 @@ Thanks for letting me sign your key!
 
 --
 GNOME Keysign
-'''
+''')
 
 
 def sign_keydata_and_send(keydata, error_cb=None):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]