workflows: change some action labels (#2913)
This commit is contained in:
parent
efca84df46
commit
5a563dc96a
|
@ -117,7 +117,7 @@ class AttachmentEvolutionPart:
|
|||
|
||||
|
||||
class AddAttachmentWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Allow Addition of an Attachment')
|
||||
description = N_('Allow Joining a File')
|
||||
key = 'addattachment'
|
||||
endpoint = False
|
||||
waitpoint = True
|
||||
|
@ -137,9 +137,9 @@ class AddAttachmentWorkflowStatusItem(WorkflowStatusItem):
|
|||
|
||||
def render_as_line(self):
|
||||
if self.by:
|
||||
return _('Allow Addition of an Attachment by %s') % self.render_list_of_roles(self.by)
|
||||
return _('Allow Joining a File, by %s') % self.render_list_of_roles(self.by)
|
||||
else:
|
||||
return _('Allow Addition of an Attachment (not completed)')
|
||||
return _('Allow Joining a File (not completed)')
|
||||
|
||||
def fill_form(self, form, formdata, user):
|
||||
if self.display_title:
|
||||
|
|
|
@ -19,7 +19,7 @@ from wcs.roles import get_user_roles
|
|||
from wcs.workflows import WorkflowStatusItem, register_item_class
|
||||
|
||||
class DispatchWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Dispatch')
|
||||
description = N_('Assign a Function')
|
||||
key = 'dispatch'
|
||||
|
||||
role_id = None
|
||||
|
|
|
@ -21,7 +21,7 @@ from wcs.workflows import WorkflowStatusItem, register_item_class, template_on_f
|
|||
|
||||
|
||||
class RegisterCommenterWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Register a comment')
|
||||
description = N_('Record in Journal')
|
||||
key = 'register-comment'
|
||||
|
||||
comment = None
|
||||
|
|
|
@ -18,7 +18,7 @@ from quixote import get_publisher, get_request, get_response, get_session
|
|||
from wcs.workflows import WorkflowStatusItem, register_item_class
|
||||
|
||||
class RemoveWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Remove')
|
||||
description = N_('Remove Form')
|
||||
key = 'remove'
|
||||
|
||||
def perform(self, formdata):
|
||||
|
|
|
@ -21,7 +21,7 @@ from wcs.roles import get_user_roles
|
|||
from wcs.users import User
|
||||
|
||||
class AddRoleWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Add Role')
|
||||
description = N_('Add Role to Sender')
|
||||
key = 'add_role'
|
||||
|
||||
role_id = None
|
||||
|
@ -54,7 +54,7 @@ register_item_class(AddRoleWorkflowStatusItem)
|
|||
|
||||
|
||||
class RemoveRoleWorkflowStatusItem(WorkflowStatusItem):
|
||||
description = N_('Remove Role')
|
||||
description = N_('Remove Role from Sender')
|
||||
key = 'remove_role'
|
||||
|
||||
role_id = None
|
||||
|
|
|
@ -1294,7 +1294,7 @@ def rtf_process(value):
|
|||
return str2rtf(unicode(str(value), get_publisher().site_charset))
|
||||
|
||||
class ExportToModel(WorkflowStatusItem):
|
||||
description = N_('Export to model')
|
||||
description = N_('Create Document')
|
||||
key = 'export_to_model'
|
||||
support_substitution_variables = True
|
||||
|
||||
|
@ -1313,16 +1313,16 @@ class ExportToModel(WorkflowStatusItem):
|
|||
'size': self.model_file.size }
|
||||
else:
|
||||
model = _('no model set')
|
||||
return _('Export to model, labeled %(label)s, %(model)s') % {
|
||||
return _('Create document, labeled %(label)s, %(model)s') % {
|
||||
'label': self.label,
|
||||
'model': model }
|
||||
else:
|
||||
return _('Export to model (not completed)')
|
||||
return _('Create document (not completed)')
|
||||
|
||||
def fill_form(self, form, formdata, user):
|
||||
label = self.label
|
||||
if not label:
|
||||
label = _('Export to model')
|
||||
label = _('Create Document')
|
||||
form.add_submit('button%s' % self.id, label)
|
||||
|
||||
def submit_form(self, form, formdata, user, evo):
|
||||
|
|
Loading…
Reference in New Issue