Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
[info]
|
||||
name: Wrong Layout
|
||||
short_name: Wrong Layout
|
||||
version: 0.1.4
|
||||
version: 0.1.5
|
||||
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
|
||||
min_gajim_version: 0.16.11
|
||||
min_gajim_version: 1.0.0
|
||||
@@ -1,13 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gajim.common import helpers
|
||||
|
||||
from gajim.common import app
|
||||
|
||||
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 WrongLayoutPlugin(GajimPlugin):
|
||||
@log_calls('WrongLayoutPlugin')
|
||||
|
||||
Reference in New Issue
Block a user