wallace/module_invitationpolicy.py
Thomas Brüderli
bruederli at kolabsys.com
Wed Jan 21 17:25:18 CET 2015
wallace/module_invitationpolicy.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 662e94cda0ad95bcc6367804e494c8759f8d1e93
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Wed Jan 21 17:25:14 2015 +0100
Localize notification message texts with gettext (#4256)
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
More information about the commits
mailing list