Add compatibility for Gajim 1.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: Tic tac toe
|
||||
short_name: Tic tac toe
|
||||
version: 1.5
|
||||
version: 1.6
|
||||
description: Play tic tac toe
|
||||
authors = Yann Leboulanger <asterix@lagaule.org>
|
||||
homepage = https://dev.gajim.org/gajim/gajim-plugins/wikis/TictactoePlugin
|
||||
|
||||
@@ -49,6 +49,12 @@ 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
|
||||
|
||||
NS_GAMES = 'http://jabber.org/protocol/games'
|
||||
NS_GAMES_TICTACTOE = NS_GAMES + '/tictactoe'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user