[gnome-keysign: 49/75] keylistwidget: Import _ from i18n
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 49/75] keylistwidget: Import _ from i18n
- Date: Fri, 29 Sep 2017 11:26:27 +0000 (UTC)
commit 76536150f74715bbbb20c7c4197822791c95b8cd
Author: Tobias Mueller <muelli cryptobitch de>
Date: Sun Jul 23 16:14:24 2017 +0200
keylistwidget: Import _ from i18n
Otherwise we might not have that shortcut:
keysign.keylistwidget (INFO): Formatted UID: u'fo?e?ba\t<i>foo@bma.d</i>\t<small></small>'
Traceback (most recent call last):
File "/tmp/gks/lib/python2.7/site-packages/keysign/app.py", line 132, in on_activate
self.send = SendApp()
File "/tmp/gks/lib/python2.7/site-packages/keysign/send.py", line 57, in __init__
klw = KeyListWidget(keys, builder=builder)
File "/tmp/gks/lib/python2.7/site-packages/keysign/keylistwidget.py", line 129, in __init__
lbr = ListBoxRowWithKey(key)
File "/tmp/gks/lib/python2.7/site-packages/keysign/keylistwidget.py", line 35, in __init__
s = self.format(key)
File "/tmp/gks/lib/python2.7/site-packages/keysign/keylistwidget.py", line 65, in format
fmt += "\n<small>" + _("Expires: ") + " {expiry}</small>"
NameError: global name '_' is not defined
keysign/keylistwidget.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/keysign/keylistwidget.py b/keysign/keylistwidget.py
index 2982b27..2532228 100644
--- a/keysign/keylistwidget.py
+++ b/keysign/keylistwidget.py
@@ -22,6 +22,7 @@ if __name__ == "__main__" and __package__ is None:
__package__ = str('keysign')
from .gpgmh import get_usable_keys
+from .i18n import _
log = logging.getLogger(__name__)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]