[gnome-keysign] util: translate email title and body (#62)
- From: Ludovico de Nittis <denittis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign] util: translate email title and body (#62)
- Date: Thu, 4 Oct 2018 17:23:47 +0000 (UTC)
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]