From a815f3372e425210ac3f483c9852b556240f9c37 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 19 Jul 2012 17:39:13 +0400 Subject: [PATCH] otr. make error message translateble. --- gotr/otrmodule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gotr/otrmodule.py b/gotr/otrmodule.py index 64638e0..fb2069a 100644 --- a/gotr/otrmodule.py +++ b/gotr/otrmodule.py @@ -252,9 +252,9 @@ class OtrPlugin(GajimPlugin): @log_calls('OtrPlugin') def activate(self): if not HAS_POTR: - raise GajimPluginException('python-otr is missing!') + raise GajimPluginException(_('python-otr is missing!')) if not hasattr(potr, 'VERSION') or potr.VERSION < MINVERSION: - raise GajimPluginException('old / unsupported python-otr version') + raise GajimPluginException(_('old / unsupported python-otr version')) def get_otr_status(self, account, contact): ctx = self.us[account].getContext(contact.get_full_jid())