From e1edd7a8e9a9e70a01738b3bf19733d25969d39e Mon Sep 17 00:00:00 2001 From: Earl Warren <109468362+earl-warren@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:53:38 +0200 Subject: [PATCH] Show correct naming for 1 comment (#25704) - Resolves https://codeberg.org/forgejo/forgejo/issues/948 Co-authored-by: Gusted Co-authored-by: Giteabot --- options/locale/locale_en-US.ini | 1 + templates/repo/issue/view_title.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index f10d6620ff..7503faa56b 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1436,6 +1436,7 @@ issues.next = Next issues.open_title = Open issues.closed_title = Closed issues.draft_title = Draft +issues.num_comments_1 = %d comment issues.num_comments = %d comments issues.commented_at = `commented %s` issues.delete_comment_confirm = Are you sure you want to delete this comment? diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index 895eaee8ce..c1dd265e58 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -111,7 +111,7 @@ {{$.locale.Tr "repo.issues.opened_by_fake" $createdStr (.Issue.Poster.GetDisplayName|Escape) | Safe}} {{end}} ยท - {{$.locale.Tr "repo.issues.num_comments" .Issue.NumComments}} + {{$.locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}} {{end}}