1
0
Fork 0
forked from forgejo/forgejo

Fix more "locale" usages (#27259)

This commit is contained in:
wxiaoguang 2023-09-25 20:42:40 +08:00 committed by GitHub
parent 7960ba7e2b
commit 93bd4351bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
115 changed files with 224 additions and 225 deletions

View file

@ -39,7 +39,7 @@
<a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.file_revision"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_revision" ><span>{{.CommitCount}}</span> {{svg "octicon-history"}}</a>
{{$title}}
<div class="ui sub header">
{{$timeSince := TimeSince .Author.When $.locale}}
{{$timeSince := TimeSince .Author.When ctx.Locale}}
{{ctx.Locale.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
</div>
</div>