Use correct i18n module
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user