We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74d16a commit c07199fCopy full SHA for c07199f
routers/web/user/setting/profile.go
@@ -137,11 +137,8 @@ func ProfilePost(ctx *context.Context) {
137
return
138
}
139
140
- // Update the language to the one we just set
141
- middleware.SetLocaleCookie(ctx.Resp, ctx.Doer.Language, 0)
142
-
143
log.Trace("User settings updated: %s", ctx.Doer.Name)
144
- ctx.Flash.Success(translation.NewLocale(ctx.Doer.Language).Tr("settings.update_profile_success"))
+ ctx.Flash.Success(ctx.Tr("settings.update_profile_success"))
145
ctx.Redirect(setting.AppSubURL + "/user/settings")
146
147
0 commit comments