Add compatibility for Gajim 1.1
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user