Skip to content

Commit 2a78c2d

Browse files
Gustedearl-warren
authored andcommitted
[GITEA] Show correct naming for 1 comment
- Resolves https://codeberg.org/forgejo/forgejo/issues/948
1 parent c930512 commit 2a78c2d

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
@@ -1436,6 +1436,7 @@ issues.next = Next
14361436
issues.open_title = Open
14371437
issues.closed_title = Closed
14381438
issues.draft_title = Draft
1439+
issues.num_comments_1 = %d comment
14391440
issues.num_comments = %d comments
14401441
issues.commented_at = `commented <a href="#%s">%s</a>`
14411442
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)