summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-01-21 17:25:14 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2015-01-21 17:25:14 +0100
commit662e94cda0ad95bcc6367804e494c8759f8d1e93 (patch)
tree884efee4e1cdc1eb80bc8bfc5a89a6ee44f30031
parentc327aa3f7a4a02bbba6792c2446d0a4008917e71 (diff)
downloadpykolab-662e94cda0ad95bcc6367804e494c8759f8d1e93.tar.gz
Localize notification message texts with gettext (#4256)
-rw-r--r--wallace/module_invitationpolicy.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 1cf78a7..d473d52 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -1044,18 +1044,18 @@ def send_update_notification(object, receiving_user, old=None, reply=True):
# compose different notification texts for events/tasks
if object.type == 'task':
- message_text = """
+ message_text = _("""
The assignment for '%(summary)s' has been updated in your tasklist.
%(roundup)s
- """ % {
+ """) % {
'summary': object.get_summary(),
'roundup': roundup
}
else:
- message_text = """
+ message_text = _("""
The event '%(summary)s' at %(start)s has been updated in your calendar.
%(roundup)s
- """ % {
+ """) % {
'summary': object.get_summary(),
'start': xmlutils.property_to_string('start', object.get_start()),
'roundup': roundup
@@ -1106,18 +1106,18 @@ def send_cancel_notification(object, receiving_user):
# compose different notification texts for events/tasks
if object.type == 'task':
- message_text = """
+ message_text = _("""
The assignment for '%(summary)s' has been cancelled by %(organizer)s.
The copy in your tasklist as been marked as cancelled accordingly.
- """ % {
+ """) % {
'summary': object.get_summary(),
'organizer': orgname if orgname else orgemail
}
else:
- message_text = """
+ message_text = _("""
The event '%(summary)s' at %(start)s has been cancelled by %(organizer)s.
The copy in your calendar as been marked as cancelled accordingly.
- """ % {
+ """) % {
'summary': object.get_summary(),
'start': xmlutils.property_to_string('start', object.get_start()),
'organizer': orgname if orgname else orgemail