Skip to content

Commit 09d5eb7

Browse files
committed
added another translation
1 parent e308329 commit 09d5eb7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ issues.lock.unknown_reason = Cannot lock an issue with an unknown reason.
785785
issues.lock_duplicate = An issue cannot be locked twice.
786786
issues.unlock_error = Cannot unlock an issue that is not locked.
787787
issues.lock_with_reason = "locked as <strong>%s</strong> and limited conversation to collaborators %s"
788+
issues.lock_no_reason = "locked and limited conversation to collaborators %s"
788789
issues.unlock_comment = "unlocked this conversation %s"
789790
issues.lock_confirm = Lock
790791
issues.unlock_confirm = Unlock

templates/repo/issue/view_content/comments.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,15 @@
367367
<img src="{{.Poster.RelAvatarLink}}">
368368
</a>
369369

370+
{{ if .Content }}
370371
<span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
371372
{{$.i18n.Tr "repo.issues.lock_with_reason" .Content $createdStr | Safe}}
372373
</span>
374+
{{ else }}
375+
<span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
376+
{{$.i18n.Tr "repo.issues.lock_no_reason" $createdStr | Safe}}
377+
</span>
378+
{{ end }}
373379
</div>
374380
{{else if eq .Type 24}}
375381
<div class="event">

0 commit comments

Comments
 (0)