Use correct i18n module

This commit is contained in:
Philipp Hörist
2019-01-31 20:22:34 +01:00
parent 604272bdec
commit 76643eb839
30 changed files with 30 additions and 106 deletions

View File

@@ -1,7 +1,7 @@
[info]
name: Tic tac toe
short_name: tictactoe
version: 1.6.31
version: 1.6.32
description: Play tic tac toe
authors = Yann Leboulanger <asterix@lagaule.org>
homepage = https://dev.gajim.org/gajim/gajim-plugins/wikis/TictactoePlugin

View File

@@ -48,12 +48,7 @@ from gajim import chat_control
from gajim.common import ged
from gajim import dialogs
from gajim.common.connection_handlers_events import InformationEvent
# Since Gajim 1.1.0 _() has to be imported
try:
from gajim.common.i18n import _
except ImportError:
pass
from gajim.plugins.plugins_i18n import _
NS_GAMES = 'http://jabber.org/protocol/games'
NS_GAMES_TICTACTOE = NS_GAMES + '/tictactoe'