Skip to content

Commit 3b97c97

Browse files
earl-warrenGustedGiteaBot
committed
Show correct naming for 1 comment (go-gitea#25704)
- Resolves https://codeberg.org/forgejo/forgejo/issues/948 Co-authored-by: Gusted <postmaster@gusted.xyz> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent 04eea29 commit 3b97c97

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

options/locale/locale_en-US.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,7 @@ issues.next = Next
14301430
issues.open_title = Open
14311431
issues.closed_title = Closed
14321432
issues.draft_title = Draft
1433+
issues.num_comments_1 = %d comment
14331434
issues.num_comments = %d comments
14341435
issues.commented_at = `commented <a href="#%s">%s</a>`
14351436
issues.delete_comment_confirm = Are you sure you want to delete this comment?

templates/repo/issue/view_title.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
{{$.locale.Tr "repo.issues.opened_by_fake" $createdStr (.Issue.Poster.GetDisplayName|Escape) | Safe}}
112112
{{end}}
113113
·
114-
{{$.locale.Tr "repo.issues.num_comments" .Issue.NumComments}}
114+
{{$.locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}}
115115
</span>
116116
{{end}}
117117
</div>

0 commit comments

Comments
 (0)