forked from forgejo/forgejo
Fix calls to i18n in templates (#21394)
Although the `.i18n` has been refactored to `.locale`, some PRs using `.i18n` were still merged. * #20219 * #21246 This PR fixes the calls to `.i18n`. At the moment, `{{.nosuch.nosuch "..."}}` won't cause template error so these mistakes don't cause 500 and haven't been found.
This commit is contained in:
parent
7044d34ae5
commit
23b6827151
3 changed files with 8 additions and 8 deletions
|
@ -103,8 +103,8 @@
|
|||
<div class="field">
|
||||
<div class="ui checkbox">
|
||||
<input class="hidden" name="wiki" type="checkbox" tabindex="0" {{if .Webhook.Wiki}}checked{{end}}>
|
||||
<label>{{.i18n.Tr "repo.settings.event_wiki"}}</label>
|
||||
<span class="help">{{.i18n.Tr "repo.settings.event_wiki_desc"}}</span>
|
||||
<label>{{.locale.Tr "repo.settings.event_wiki"}}</label>
|
||||
<span class="help">{{.locale.Tr "repo.settings.event_wiki_desc"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue