mirror of
https://github.com/go-gitea/gitea
synced 2025-08-07 01:58:19 +00:00
Always use ctx.Locale.Tr
inside templates (#27231)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{{.Captcha.CreateHTML}}
|
||||
</div>
|
||||
<div class="required inline field {{if .Err_Captcha}}error{{end}}">
|
||||
<label for="captcha">{{.locale.Tr "captcha"}}</label>
|
||||
<label for="captcha">{{ctx.Locale.Tr "captcha"}}</label>
|
||||
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
|
||||
</div>
|
||||
{{else if eq .CaptchaType "recaptcha"}}
|
||||
|
Reference in New Issue
Block a user