Use correct i18n module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: Regex Filter
|
||||
short_name: regex_filter
|
||||
version: 1.2.0
|
||||
version: 1.2.1
|
||||
description: Filter incoming messages using regex.
|
||||
authors: Yann Leboulanger <asterix@lagaule.org>
|
||||
homepage: http://trac-plugins.gajim.org/wiki/RegexFilterPlugin
|
||||
|
||||
@@ -33,12 +33,7 @@ from gajim.common import app
|
||||
from gajim.common import ged
|
||||
from gajim.command_system.framework import CommandContainer, command, doc
|
||||
from gajim.command_system.implementation.hosts import *
|
||||
|
||||
# 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 RegexFilterPlugin(GajimPlugin):
|
||||
|
||||
Reference in New Issue
Block a user