Skip to content

Commit 68e0c80

Browse files
GiteaBotearl-warrenGusted
authored
Show correct naming for 1 comment (go-gitea#25704) (go-gitea#25712)
Backport go-gitea#25704 by @earl-warren - Resolves https://codeberg.org/forgejo/forgejo/issues/948 Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted <postmaster@gusted.xyz>
1 parent 09668b2 commit 68e0c80

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)