Fix en_us_detailed causing errors
This commit is contained in:
1 parent
000893987b
commit
cd9bd800ab
1 file changed
+5
@@ -1726,6 +1726,11 @@ end
|
|||||||
-- Get the current Language. Defaults to english if none is set.
|
-- Get the current Language. Defaults to english if none is set.
|
||||||
function EID:getLanguage()
|
function EID:getLanguage()
|
||||||
local lang = EID.Config["Language"]
|
local lang = EID.Config["Language"]
|
||||||
|
-- Reset invalid languages (like en_us_detailed)
|
||||||
|
if EID.descriptions[lang] == nil then
|
||||||
|
EID.Config["Language"] = "auto"
|
||||||
|
lang = "auto"
|
||||||
|
end
|
||||||
if lang == "auto" then
|
if lang == "auto" then
|
||||||
return Options and EID.LanguageMap[Options.Language] or "en_us"
|
return Options and EID.LanguageMap[Options.Language] or "en_us"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user