summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/web/user/setting/profile.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/routers/web/user/setting/profile.go b/routers/web/user/setting/profile.go
index e01f3cdeea..f0f053a514 100644
--- a/routers/web/user/setting/profile.go
+++ b/routers/web/user/setting/profile.go
@@ -137,11 +137,8 @@ func ProfilePost(ctx *context.Context) {
return
}
- // Update the language to the one we just set
- middleware.SetLocaleCookie(ctx.Resp, ctx.Doer.Language, 0)
-
log.Trace("User settings updated: %s", ctx.Doer.Name)
- ctx.Flash.Success(translation.NewLocale(ctx.Doer.Language).Tr("settings.update_profile_success"))
+ ctx.Flash.Success(ctx.Tr("settings.update_profile_success"))
ctx.Redirect(setting.AppSubURL + "/user/settings")
}