Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2018-10-06 21:14:38 +0300
committerPhilipp Hörist <philipp@hoerist.com>2018-10-06 21:46:24 +0300
commit97c2bfbdd9cf4929cd27156b8210c1e71871a018 (patch)
treef9e826b9188ea7db90596dcf90b1e48f4f5383b4 /wicd_support
parentdb2c71b6a10cac18fbf9dd60b093cfe90360eb96 (diff)
Add compatibility for Gajim 1.1
Diffstat (limited to 'wicd_support')
-rw-r--r--wicd_support/manifest.ini4
-rw-r--r--wicd_support/wicd_support.py7
2 files changed, 7 insertions, 4 deletions
diff --git a/wicd_support/manifest.ini b/wicd_support/manifest.ini
index 4060fa9..4c9910c 100644
--- a/wicd_support/manifest.ini
+++ b/wicd_support/manifest.ini
@@ -1,9 +1,9 @@
[info]
name: Wicd support
short_name: wicd_support
-version: 0.1.3
+version: 0.1.4
description: Support for autodetection of network status for Wicd Network Manager.
Requires wicd and python-dbus.
authors = Denis Fomin <fominde@gmail.com>
homepage = http://trac-plugins.gajim.org/wiki/WicdSupportPlugin
-min_gajim_version: 0.16.11
+min_gajim_version: 1.0.0
diff --git a/wicd_support/wicd_support.py b/wicd_support/wicd_support.py
index e3d4dfd..f5440de 100644
--- a/wicd_support/wicd_support.py
+++ b/wicd_support/wicd_support.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
import os
from gajim.common import app
@@ -7,6 +5,11 @@ from gajim.plugins import GajimPlugin
from gajim.plugins.helpers import log_calls
from gajim.common import dbus_support
+# Since Gajim 1.1.0 _() has to be imported
+try:
+ from gajim.common.i18n import _
+except ImportError:
+ pass
class WicdPlugin(GajimPlugin):
@log_calls('WicdPlugin')