[SSE] Fix loading region settings
This commit is contained in:
parent
bb55c1ea9f
commit
481064faf5
|
@ -446,9 +446,11 @@ Common.util.LanguageInfo = new(function() {
|
|||
},
|
||||
|
||||
getLocalLanguageCode: function(name) {
|
||||
for (var code in localLanguageName) {
|
||||
if (localLanguageName[code][0].toLowerCase()===name.toLowerCase())
|
||||
return code;
|
||||
if (name) {
|
||||
for (var code in localLanguageName) {
|
||||
if (localLanguageName[code][0].toLowerCase()===name.toLowerCase())
|
||||
return code;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue