general: rename "Variable Name" to "Identifier" (#15125)

This also adds specific hints on the place it is used.
This commit is contained in:
Frédéric Péters 2017-06-19 09:43:15 +02:00
parent d73542e727
commit 159ed31c9b
6 changed files with 13 additions and 8 deletions

View File

@ -393,8 +393,9 @@ class WidgetField(Field):
required = True, size = 50)
form.add(CheckboxWidget, 'required', title = _('Required'),
value = self.required)
form.add(VarnameWidget, 'varname', title=_('Variable Name'),
value=self.varname, size=30, advanced=(not self.varname))
form.add(VarnameWidget, 'varname', title=_('Identifier'),
value=self.varname, size=30, advanced=(not self.varname),
hint=_('This is used as suffix for variable names.'))
form.add(TextWidget, 'hint', title = _('Hint'), value = self.hint,
cols=60, rows=3)
form.add(CheckboxWidget, 'in_listing', title = _('Display in listings'),

View File

@ -153,7 +153,8 @@ class AddAttachmentWorkflowStatusItem(WorkflowStatusItem):
value=self.backoffice_info_text)
if 'varname' in parameters:
form.add(VarnameWidget, '%svarname' % prefix,
title=_('Variable Name'), value=self.varname)
title=_('Identifier'), value=self.varname,
hint=_('This is used to get attachment in expressions.'))
if 'push_to_portfolio' in parameters:
form.add(CheckboxWidget, '%spush_to_portfolio' % prefix,
title=_('Push generated file to portfolio'),

View File

@ -322,7 +322,8 @@ class ExportToModel(WorkflowStatusItem):
value=self.push_to_portfolio)
if 'varname' in parameters:
form.add(VarnameWidget, '%svarname' % prefix,
title=_('Variable Name'), value=self.varname)
title=_('Identifier'), value=self.varname,
hint=_('This is used to get generated document in expressions.'))
if 'method' in parameters:
form.add(RadiobuttonsWidget, '%smethod' % prefix,

View File

@ -95,7 +95,8 @@ class FormWorkflowStatusItem(WorkflowStatusItem):
self.get_list_of_roles(include_logged_in_users=False)})
if 'varname' in parameters:
form.add(VarnameWidget, '%svarname' % prefix, required=True,
title=_('Variable Name'), value=self.varname)
title=_('Identifier'), value=self.varname,
hint=_('This is used as prefix for form fields variable names.'))
form.widgets.append(HtmlWidget(htmltext('<p><a href="fields/">%s</a></p>') % _('Edit Fields')))

View File

@ -202,7 +202,8 @@ class WebserviceCallStatusItem(WorkflowStatusItem):
attrs={'data-dynamic-display-parent': 'true'})
if 'varname' in parameters:
form.add(VarnameWidget, '%svarname' % prefix,
title=_('Variable Name'), value=self.varname)
title=_('Identifier'), value=self.varname,
hint=_('This is used as prefix for webservice result variable names.'))
form.widgets.append(HtmlWidget(htmltext('<h3>%s</h3>') % _('Error Handling')))
error_actions = [(':stop', _('Stop')), (':pass', _('Ignore'))]

View File

@ -1853,8 +1853,8 @@ class CommentableWorkflowStatusItem(WorkflowStatusItem):
'options': [(None, '---', None)] + self.get_list_of_roles()})
if 'varname' in parameters:
form.add(VarnameWidget, '%svarname' % prefix,
title=_('Variable Name'), value=self.varname,
hint=_('This will make the comment available in a variable named comment_varname.'))
title=_('Identifier'), value=self.varname,
hint=_('This will make the comment available in a variable named comment_ + identifier.'))
if 'backoffice_info_text' in parameters:
form.add(WysiwygTextWidget, '%sbackoffice_info_text' % prefix,
title=_('Information Text for Backoffice'),