mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-03 14:57:55 -05:00
remove update language in ProfilePost (#22748)
Fixes https://github.com/go-gitea/gitea/issues/22703 Change language has been moved to `UpdateUserLang` Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
d74d16a4b1
commit
c07199f9ab
@ -137,11 +137,8 @@ func ProfilePost(ctx *context.Context) {
|
|||||||
return
|
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)
|
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")
|
ctx.Redirect(setting.AppSubURL + "/user/settings")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user