diff options
author | enahum <nahumhbl@gmail.com> | 2016-05-24 09:36:27 -0300 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-24 08:36:27 -0400 |
commit | 34beaa569bfb32f1607375f1d5a22859322060d2 (patch) | |
tree | c5d264e383890c88263db071a555201e4bc8e159 /model/user.go | |
parent | 79c0b206895ce6c5ffa498cdc80edbd821ff5469 (diff) | |
download | chat-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 'model/user.go')
-rw-r--r-- | model/user.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/model/user.go b/model/user.go index 7dee67381..9b52cfa97 100644 --- a/model/user.go +++ b/model/user.go @@ -136,7 +136,6 @@ func (u *User) PreSave() { u.Username = strings.ToLower(u.Username) u.Email = strings.ToLower(u.Email) - u.Locale = strings.ToLower(u.Locale) u.CreateAt = GetMillis() u.UpdateAt = u.CreateAt @@ -166,7 +165,6 @@ func (u *User) PreSave() { func (u *User) PreUpdate() { u.Username = strings.ToLower(u.Username) u.Email = strings.ToLower(u.Email) - u.Locale = strings.ToLower(u.Locale) u.UpdateAt = GetMillis() if u.AuthData != nil && *u.AuthData == "" { |