mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user