summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-05-24 09:36:27 -0300
committerJoram Wilander <jwawilander@gmail.com>2016-05-24 08:36:27 -0400
commit34beaa569bfb32f1607375f1d5a22859322060d2 (patch)
treec5d264e383890c88263db071a555201e4bc8e159 /api/user.go
parent79c0b206895ce6c5ffa498cdc80edbd821ff5469 (diff)
downloadchat-34beaa569bfb32f1607375f1d5a22859322060d2.tar.gz
chat-34beaa569bfb32f1607375f1d5a22859322060d2.tar.bz2
chat-34beaa569bfb32f1607375f1d5a22859322060d2.zip
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
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go
index 89ac1c837..ac99bd21b 100644
--- a/api/user.go
+++ b/api/user.go
@@ -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)