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/dev/template.go | |
parent | 9d8fba62b37aee328f47411d1e187ca8f18396e4 (diff) | |
download | gitea-32fc44aa83e61acb93dbdcf6d47dfadc69f5c044.tar.gz gitea-32fc44aa83e61acb93dbdcf6d47dfadc69f5c044.zip |
Make time diff translatable (#2057)
Diffstat (limited to 'routers/dev/template.go')
-rw-r--r-- | routers/dev/template.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/dev/template.go b/routers/dev/template.go index fc3ef9942e..ad0d2c1cd3 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -18,8 +18,8 @@ func TemplatePreview(ctx *context.Context) { ctx.Data["AppVer"] = setting.AppVer ctx.Data["AppUrl"] = setting.AppURL ctx.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374" - ctx.Data["ActiveCodeLives"] = base.MinutesToFriendly(setting.Service.ActiveCodeLives) - ctx.Data["ResetPwdCodeLives"] = base.MinutesToFriendly(setting.Service.ResetPwdCodeLives) + ctx.Data["ActiveCodeLives"] = base.MinutesToFriendly(setting.Service.ActiveCodeLives, ctx.Locale.Language()) + ctx.Data["ResetPwdCodeLives"] = base.MinutesToFriendly(setting.Service.ResetPwdCodeLives, ctx.Locale.Language()) ctx.Data["CurDbValue"] = "" ctx.HTML(200, base.TplName(ctx.Params("*"))) |