diff options
author | Philipp Hörist <philipp@hoerist.com> | 2018-10-06 21:14:38 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2018-10-06 21:46:24 +0300 |
commit | 97c2bfbdd9cf4929cd27156b8210c1e71871a018 (patch) | |
tree | f9e826b9188ea7db90596dcf90b1e48f4f5383b4 /triggers | |
parent | db2c71b6a10cac18fbf9dd60b093cfe90360eb96 (diff) |
Add compatibility for Gajim 1.1
Diffstat (limited to 'triggers')
-rw-r--r-- | triggers/manifest.ini | 2 | ||||
-rw-r--r-- | triggers/triggers.py | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/triggers/manifest.ini b/triggers/manifest.ini index 3d16b44..751aaf4 100644 --- a/triggers/manifest.ini +++ b/triggers/manifest.ini @@ -1,7 +1,7 @@ [info] name: Triggers short_name: triggers -version: 0.5 +version: 0.6 description: Configure Gajim's behaviour for each contact authors: Yann Leboulanger <asterix@lagaule.org> homepage: https://dev.gajim.org/gajim/gajim-plugins/wikis/TriggersPlugin diff --git a/triggers/triggers.py b/triggers/triggers.py index bef610c..1d96e90 100644 --- a/triggers/triggers.py +++ b/triggers/triggers.py @@ -31,6 +31,12 @@ from gajim.plugins import GajimPlugin from gajim.plugins.helpers import log_calls from gajim.plugins.gui import GajimPluginConfigDialog +# Since Gajim 1.1.0 _() has to be imported +try: + from gajim.common.i18n import _ +except ImportError: + pass + try: from gajim.gtk.filechoosers import NativeFileChooserDialog, Filter |