PLT-1800 Load server side locale from the config.json (#3076)
* PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
79c0b20689
Коммит
34beaa569b
@@ -239,6 +239,7 @@ func CreateUser(user *model.User) (*model.User, *model.AppError) {
|
||||
}
|
||||
|
||||
user.MakeNonNil()
|
||||
user.Locale = *utils.Cfg.LocalizationSettings.DefaultClientLocale
|
||||
|
||||
if result := <-Srv.Store.User().Save(user); result.Err != nil {
|
||||
l4g.Error(utils.T("api.user.create_user.save.error"), result.Err)
|
||||
|
||||
Ссылка в новой задаче
Block a user