Updated workflow notifications messages
authorThierry Florac <thierry.florac@onf.fr>
Tue, 16 Jan 2018 14:24:17 +0100
changeset 325 5e0acd7fc5f5
parent 324 3825da899917
child 326 00d381f985c8
Updated workflow notifications messages
src/pyams_content/workflow/__init__.py
--- a/src/pyams_content/workflow/__init__.py	Tue Jan 16 14:23:57 2018 +0100
+++ b/src/pyams_content/workflow/__init__.py	Tue Jan 16 14:24:17 2018 +0100
@@ -288,7 +288,7 @@
                                next_step=_("content managers authorized to take charge of your content are going to "
                                            "be notified of your request."),
                                notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                               notify_message=_("A publication request has been submitted for content « {0} »"),
+                               notify_message=_("submitted a publication request for content « {0} »"),
                                order=1)
 
 retired_to_proposed = Transition(transition_id='retired_to_proposed',
@@ -303,7 +303,7 @@
                                  next_step=_("content managers authorized to take charge of your content are going to "
                                              "be notified of your request."),
                                  notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                 notify_message=_("A new publication request has been submitted for content « {0} »"),
+                                 notify_message=_("submitted a publication request for content « {0} »"),
                                  order=1)
 
 proposed_to_canceled = Transition(transition_id='proposed_to_canceled',
@@ -316,7 +316,7 @@
                                   view_name='wf-cancel-propose.html',
                                   history_label=_("Publication request canceled"),
                                   notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                  notify_message=_("The publication request for content « {0} » has been cancelled"),
+                                  notify_message=_("cancelled the publication request for content « {0} »"),
                                   order=2)
 
 canceled_to_draft = Transition(transition_id='canceled_to_draft',
@@ -345,7 +345,7 @@
                                  view_name='wf-refuse.html',
                                  history_label=_("Publication refused"),
                                  notify_roles={OWNER_ROLE},
-                                 notify_message=_("The publication request for content « {0} » has been refused"),
+                                 notify_message=_("refused the publication request for content « {0} »"),
                                  order=3)
 
 refused_to_draft = Transition(transition_id='refused_to_draft',
@@ -375,7 +375,7 @@
                                    view_name='wf-publish.html',
                                    history_label=_("Content published"),
                                    notify_roles={'*'},
-                                   notify_message=_("The content « {0} » has been published"),
+                                   notify_message=_("published the content « {0} »"),
                                    order=4)
 
 published_to_retiring = Transition(transition_id='published_to_retiring',
@@ -389,7 +389,7 @@
                                    next_step=_("content managers authorized to take charge of your content are going "
                                                "to be notified of your request."),
                                    notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                   notify_message=_("A retire request has been submitted for content « {0} »"),
+                                   notify_message=_("submitted a retire request for content « {0} »"),
                                    order=7)
 
 published_to_retired = Transition(transition_id='published_to_retired',
@@ -409,7 +409,7 @@
                                    view_name='wf-cancel-retiring.html',
                                    history_label=_("Retire request canceled"),
                                    notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                   notify_message=_("The retiring request for content « {0} » has been cancelled"),
+                                   notify_message=_("cancelled the retiring request for content « {0} »"),
                                    order=8)
 
 retiring_to_retired = Transition(transition_id='retiring_to_retired',
@@ -422,7 +422,7 @@
                                  view_name='wf-retire.html',
                                  history_label=_("Content retired"),
                                  notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                 notify_message=_("The content « {0} » has been retired"),
+                                 notify_message=_("retired content « {0} »"),
                                  order=9)
 
 retired_to_archiving = Transition(transition_id='retired_to_archiving',
@@ -436,7 +436,7 @@
                                   next_step=_("content managers authorized to take charge of your content are going to "
                                               "be notified of your request."),
                                   notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                  notify_message=_("An archive request has been submitted for content « {0} »"),
+                                  notify_message=_("submitted an archive request for content « {0} »"),
                                   order=10)
 
 archiving_to_retired = Transition(transition_id='archiving_to_retired',
@@ -449,7 +449,7 @@
                                   view_name='wf-cancel-archiving.html',
                                   history_label=_("Archive request canceled"),
                                   notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                  notify_message=_("The archive request for content « {0} » has been cancelled"),
+                                  notify_message=_("cancelled the archive request for content « {0} »"),
                                   order=11)
 
 archiving_to_archived = Transition(transition_id='archiving_to_archived',
@@ -463,7 +463,7 @@
                                    view_name='wf-archive.html',
                                    history_label=_("Content archived"),
                                    notify_roles={WEBMASTER_ROLE, PILOT_ROLE, MANAGER_ROLE, OWNER_ROLE},
-                                   notify_message=_("The content « {0} » has been archived"),
+                                   notify_message=_("archived content « {0} »"),
                                    order=12)
 
 published_to_archived = Transition(transition_id='published_to_archived',