diff --git a/models/issues/comment.go b/models/issues/comment.go
index 9302ab3471..60883f1a46 100644
--- a/models/issues/comment.go
+++ b/models/issues/comment.go
@@ -805,15 +805,14 @@ func (c *Comment) MetaSpecialDoerTr(locale translation.Locale) template.HTML {
case SpecialDoerNameCodeOwners:
return locale.Tr("repo.issues.review.codeowners_rules")
case SpecialDoerNameProjectWorkflow:
+ res := locale.Tr("repo.issues.project_workflow")
if c.CommentMetaData.ProjectWorkflowID > 0 {
- return locale.Tr("repo.issues.project_workflow_action",
- htmlutil.HTMLFormat("%s", locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey())),
- htmlutil.HTMLFormat("%s", c.CommentMetaData.ProjectTitle),
- )
+ res += " " + locale.Tr(c.CommentMetaData.ProjectWorkflowEvent.LangKey()) + ""
}
- return locale.Tr("repo.issues.project_workflow")
+ return res
+ default:
+ return htmlutil.HTMLFormat("%s", c.CommentMetaData.SpecialDoerName)
}
- return template.HTML(c.CommentMetaData.SpecialDoerName)
}
func (c *Comment) TimelineRequestedReviewTr(locale translation.Locale, createdStr template.HTML) template.HTML {
diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json
index 79a893a580..a317d2bc26 100644
--- a/options/locale/locale_en-US.json
+++ b/options/locale/locale_en-US.json
@@ -1530,7 +1530,6 @@
"repo.issues.context.delete": "Delete",
"repo.issues.no_content": "No description provided.",
"repo.issues.project_workflow": "Project workflow",
- "repo.issues.project_workflow_action": "Workflow %[1]s of Project %[2]s",
"repo.issues.close": "Close Issue",
"repo.issues.comment_pull_merged_at": "merged commit %[1]s into %[2]s %[3]s",
"repo.issues.comment_manually_pull_merged_at": "manually merged commit %[1]s into %[2]s %[3]s",