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 /chatstate | |
parent | db2c71b6a10cac18fbf9dd60b093cfe90360eb96 (diff) |
Add compatibility for Gajim 1.1
Diffstat (limited to 'chatstate')
-rw-r--r-- | chatstate/chatstate.py | 10 | ||||
-rw-r--r-- | chatstate/manifest.ini | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/chatstate/chatstate.py b/chatstate/chatstate.py index dc4d49a..a9da7a1 100644 --- a/chatstate/chatstate.py +++ b/chatstate/chatstate.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -## +import unicodedata from gi.repository import GObject @@ -9,7 +8,12 @@ from gajim.common import ged from gajim.common import app from gajim.common import helpers from gajim import gtkgui_helpers -import unicodedata + +# Since Gajim 1.1.0 _() has to be imported +try: + from gajim.common.i18n import _ +except ImportError: + pass def paragraph_direction_mark(text): """ diff --git a/chatstate/manifest.ini b/chatstate/manifest.ini index 7e10a82..c39181b 100644 --- a/chatstate/manifest.ini +++ b/chatstate/manifest.ini @@ -1,7 +1,7 @@ [info] name: Chatstate in roster short_name: chatstate -version: 0.5.5 +version: 0.5.6 description: Chat State Notifications in roster. Font color of the contact varies depending on the chat state. The plugin does not work if you use custom font color for contacts in roster. |