diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-01-31 22:22:34 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-01-31 22:22:34 +0300 |
commit | 76643eb839411f99821e40942308f2d178688a47 (patch) | |
tree | 8cfbc98212341b9700746f1ad9cd22312b8fac9c /length_notifier | |
parent | 604272bdec370551b626b89143757706a7a1b1cf (diff) |
Use correct i18n module
Diffstat (limited to 'length_notifier')
-rw-r--r-- | length_notifier/length_notifier.py | 7 | ||||
-rw-r--r-- | length_notifier/manifest.ini | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/length_notifier/length_notifier.py b/length_notifier/length_notifier.py index 20df647..1cad8d0 100644 --- a/length_notifier/length_notifier.py +++ b/length_notifier/length_notifier.py @@ -30,12 +30,7 @@ from gi.repository import Gdk 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 +from gajim.plugins.plugins_i18n import _ class LengthNotifierPlugin(GajimPlugin): diff --git a/length_notifier/manifest.ini b/length_notifier/manifest.ini index a6d29ae..a6c6824 100644 --- a/length_notifier/manifest.ini +++ b/length_notifier/manifest.ini @@ -1,7 +1,7 @@ [info] name: Message Length Notifier short_name: length_notifier -version: 1.2.0 +version: 1.2.1 description: Highlights message entry field in chat window when given length of message is exceeded. authors: Mateusz Biliński <mateusz@bilinski.it> homepage: http://trac-plugins.gajim.org/wiki/LengthNotifierPlugin |