diff options
author | Lauris BH <lauris@nix.lv> | 2017-06-28 08:43:28 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-28 13:43:28 +0800 |
commit | 32fc44aa83e61acb93dbdcf6d47dfadc69f5c044 (patch) | |
tree | 60c08a5a57d10e710c36d27685f199af465f0b97 /routers/user/auth_openid.go | |
parent | 9d8fba62b37aee328f47411d1e187ca8f18396e4 (diff) | |
download | gitea-32fc44aa83e61acb93dbdcf6d47dfadc69f5c044.tar.gz gitea-32fc44aa83e61acb93dbdcf6d47dfadc69f5c044.zip |
Make time diff translatable (#2057)
Diffstat (limited to 'routers/user/auth_openid.go')
-rw-r--r-- | routers/user/auth_openid.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/auth_openid.go b/routers/user/auth_openid.go index 15bbe41c14..ff03e538f8 100644 --- a/routers/user/auth_openid.go +++ b/routers/user/auth_openid.go @@ -415,7 +415,7 @@ func RegisterOpenIDPost(ctx *context.Context, cpt *captcha.Captcha, form auth.Si models.SendActivateAccountMail(ctx.Context, u) ctx.Data["IsSendRegisterMail"] = true ctx.Data["Email"] = u.Email - ctx.Data["ActiveCodeLives"] = base.MinutesToFriendly(setting.Service.ActiveCodeLives) + ctx.Data["ActiveCodeLives"] = base.MinutesToFriendly(setting.Service.ActiveCodeLives, ctx.Locale.Language()) ctx.HTML(200, TplActivate) if err := ctx.Cache.Put("MailResendLimit_"+u.LowerName, u.LowerName, 180); err != nil { |