Add compatibility for Gajim 1.1

This commit is contained in:
Philipp Hörist
2018-10-06 20:14:38 +02:00
parent db2c71b6a1
commit 97c2bfbdd9
62 changed files with 275 additions and 115 deletions

View File

@@ -1,7 +1,7 @@
[info]
name: Birthday reminder
short_name: birthday_reminder
version: 1.0.0
version: 1.0.1
description: Reminds you if a contact of yours has birthday
authors: Evgeniy Popov <evgeniypopov@gmail.com>
Philipp Hörist <philipp@hoerist.com>

View File

@@ -11,6 +11,12 @@ from gajim.common import configpaths
from gajim.common import app
from gajim.common import ged
# Since Gajim 1.1.0 _() has to be imported
try:
from gajim.common.i18n import _
except ImportError:
pass
log = logging.getLogger('gajim.plugin_system.birthday')
TITLE = _('%s has birthday today')