Compare commits
2 Commits
d20700ca74
...
7880294c6f
Author | SHA1 | Date | |
---|---|---|---|
7880294c6f | |||
451b15fb6b |
@ -154,7 +154,8 @@ func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (r
|
|||||||
code := strings.Split(symbol, "_")[1]
|
code := strings.Split(symbol, "_")[1]
|
||||||
|
|
||||||
if !utils.IsValidISO639(code) {
|
if !utils.IsValidISO639(code) {
|
||||||
return res, nil
|
//Fallback to english instead?
|
||||||
|
code = "eng"
|
||||||
}
|
}
|
||||||
res.FlagSet = append(res.FlagSet, state.FLAG_LANG)
|
res.FlagSet = append(res.FlagSet, state.FLAG_LANG)
|
||||||
res.Content = code
|
res.Content = code
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
LOAD set_language 6
|
LOAD set_language 6
|
||||||
|
RELOAD set_language
|
||||||
CATCH terms flag_account_created 0
|
CATCH terms flag_account_created 0
|
||||||
MOVE language_changed
|
MOVE language_changed
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
LOAD set_language 6
|
LOAD set_language 6
|
||||||
|
RELOAD set_language
|
||||||
CATCH terms flag_account_created 0
|
CATCH terms flag_account_created 0
|
||||||
MOVE language_changed
|
MOVE language_changed
|
||||||
|
Loading…
Reference in New Issue
Block a user