workflow_tests: add missing gettext calls (#87565)
gitea/wcs/pipeline/head This commit looks good
Details
gitea/wcs/pipeline/head This commit looks good
Details
This commit is contained in:
parent
47c6188a40
commit
104c1c903a
|
@ -160,7 +160,7 @@ class WorkflowTestAction(XmlStorableObject):
|
|||
def render_as_line(self):
|
||||
for field, dummy in self.XML_NODES:
|
||||
if field not in self.optional_fields and not getattr(self, field):
|
||||
return 'not configured'
|
||||
return _('not configured')
|
||||
|
||||
return self.details_label
|
||||
|
||||
|
@ -179,7 +179,7 @@ class ButtonClick(WorkflowTestAction):
|
|||
|
||||
@property
|
||||
def details_label(self):
|
||||
return 'Click on "%s"' % self.button_name
|
||||
return _('Click on "%s"') % self.button_name
|
||||
|
||||
def perform(self, formdata, user):
|
||||
status = formdata.get_status()
|
||||
|
@ -227,7 +227,7 @@ class AssertStatus(WorkflowTestAction):
|
|||
|
||||
@property
|
||||
def details_label(self):
|
||||
return 'Status is "%s"' % self.status_name
|
||||
return _('Status is "%s"') % self.status_name
|
||||
|
||||
def perform(self, formdata, user):
|
||||
status = formdata.get_status()
|
||||
|
|
Loading…
Reference in New Issue