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 /wrong_layout | |
parent | 604272bdec370551b626b89143757706a7a1b1cf (diff) |
Use correct i18n module
Diffstat (limited to 'wrong_layout')
-rw-r--r-- | wrong_layout/manifest.ini | 2 | ||||
-rw-r--r-- | wrong_layout/plugin.py | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/wrong_layout/manifest.ini b/wrong_layout/manifest.ini index fda4cfc..ea42ef4 100644 --- a/wrong_layout/manifest.ini +++ b/wrong_layout/manifest.ini @@ -1,7 +1,7 @@ [info] name: Wrong Layout short_name: wrong_layout -version: 1.2.1 +version: 1.2.2 description: Press alt+r to convert chars typed in wrong layout Rus<>Eng authors: Denis Fomin <fominde@gmail.com> homepage: https://dev.gajim.org/gajim/gajim-plugins/wikis/WrongLayoutPlugin diff --git a/wrong_layout/plugin.py b/wrong_layout/plugin.py index bf4530a..2858151 100644 --- a/wrong_layout/plugin.py +++ b/wrong_layout/plugin.py @@ -5,12 +5,8 @@ from gajim.common import app from gajim.plugins import GajimPlugin from gajim.plugins.helpers import log_calls +from gajim.plugins.plugins_i18n import _ -# Since Gajim 1.1.0 _() has to be imported -try: - from gajim.common.i18n import _ -except ImportError: - pass class WrongLayoutPlugin(GajimPlugin): @log_calls('WrongLayoutPlugin') |