workflows: reword to always talk about "actions" (not "items") (#74144)

This commit is contained in:
Frédéric Péters 2023-02-03 10:31:09 +01:00
parent ae1f92a257
commit 8949d83b28
2 changed files with 4 additions and 4 deletions

View File

@ -1382,13 +1382,13 @@ class GlobalActionPage(WorkflowStatusPage):
r += htmltext('<div class="bo-block">')
r += htmltext('<h2>%s</h2>') % _('Actions')
if not self.action.items:
r += htmltext('<p>%s</p>') % _('There are not yet any items in this action.')
r += htmltext('<p>%s</p>') % _('There are not yet any actions.')
else:
if self.workflow.is_readonly():
r += htmltext('<ul id="items-list" class="biglist readonly">')
else:
r += htmltext('<p class="items">')
r += str(_('Use drag and drop with the handles to reorder items.'))
r += str(_('Use drag and drop with the handles to reorder actions.'))
r += htmltext('</p>')
r += htmltext('<ul id="items-list" class="biglist sortable">')
for item in self.action.items:

View File

@ -17,7 +17,7 @@
{% if not status.items %}
<div class="infonotice">
{% trans "There are not yet any items in this status." %}
{% trans "There are not yet any actions in this status." %}
</div>
{% else %}
{% spaceless %}
@ -25,7 +25,7 @@
{% if workflow.is_readonly %}
<ul id="items-list" class="biglist sortable readonly">
{% else %}
<p class="hint">{% trans "Use drag and drop with the handles to reorder items." %}</p>
<p class="hint">{% trans "Use drag and drop with the handles to reorder actions." %}</p>
<ul id="items-list" class="biglist sortable">
{% endif %}
{% for item in status.items %}