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 /appindicator_integration
parentdb2c71b6a10cac18fbf9dd60b093cfe90360eb96 (diff)
Add compatibility for Gajim 1.1
Diffstat (limited to 'appindicator_integration')
-rw-r--r--appindicator_integration/manifest.ini2
-rw-r--r--appindicator_integration/plugin.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/appindicator_integration/manifest.ini b/appindicator_integration/manifest.ini
index 3b055e2..0d932d3 100644
--- a/appindicator_integration/manifest.ini
+++ b/appindicator_integration/manifest.ini
@@ -1,7 +1,7 @@
[info]
name: Ayatana Appindicator integration
short_name: appindicator_integration
-version: 1.1.0
+version: 1.1.1
description: This plugin integrates Gajim with the Ayatana AppIndicator. You must have gir1.2-ayatanaappindicator3-0.1 installed to enable this plugin.
homepage: https://dev.gajim.org/gajim/gajim-plugins/wikis/AppindicatorSupportPlugin
authors: Denis Borenko <borenko@rambler.ru>
diff --git a/appindicator_integration/plugin.py b/appindicator_integration/plugin.py
index ade0db7..ed34be8 100644
--- a/appindicator_integration/plugin.py
+++ b/appindicator_integration/plugin.py
@@ -18,13 +18,19 @@ try:
from gi.repository import AyatanaAppIndicator3 as appindicator
ERRORMSG = None
except (ValueError, ImportError):
- ERRORMSG = _('Please install libappindicator3')
+ ERRORMSG = 'Please install libappindicator3'
from gajim.common import app, ged
from gajim.common import configpaths
from gajim.plugins import GajimPlugin
from gajim.plugins.helpers import log_calls
+# Since Gajim 1.1.0 _() has to be imported
+try:
+ from gajim.common.i18n import _
+except ImportError:
+ pass
+
class AppindicatorIntegrationPlugin(GajimPlugin):