From aa44fc9eb36a6a349eb34fd9f307c8b0adb79e58 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 18 Feb 2007 20:58:56 +0000 Subject: [PATCH] [bronger] translate None when selecting gpg key. fixes #2390 --- src/roster_window.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 115694f91..795631c42 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1535,19 +1535,22 @@ class RosterWindow: attached_keys = gajim.config.get_per('accounts', account, 'attached_gpg_keys').split() keys = {} - keyID = 'None' + #GPG Key + keyID = _('None') for i in xrange(len(attached_keys)/2): keys[attached_keys[2*i]] = attached_keys[2*i+1] if attached_keys[2*i] == contact.jid: keyID = attached_keys[2*i+1] public_keys = gajim.connections[account].ask_gpg_keys() - public_keys['None'] = 'None' + #GPG Key + public_keys[_('None')] = _('None') instance = dialogs.ChooseGPGKeyDialog(_('Assign OpenPGP Key'), _('Select a key to apply to the contact'), public_keys, keyID) keyID = instance.run() if keyID is None: return - if keyID[0] == 'None': + #GPG Key + if keyID[0] == _('None'): if contact.jid in keys: del keys[contact.jid] for u in gajim.contacts.get_contact(account, contact.jid):