перевод на русский язык
This commit is contained in:
@@ -7557,11 +7557,16 @@ local GlueStrings = {
|
||||
},
|
||||
}
|
||||
|
||||
if GetLocale then
|
||||
local locale = GetLocale()
|
||||
for g, locales in pairs(GlueStrings) do
|
||||
setglobal(g, locales[locale] or locales["enUS"])
|
||||
end
|
||||
else
|
||||
_G["GlueStrings"] = GlueStrings
|
||||
end
|
||||
_G["GlueStrings"] = GlueStrings
|
||||
_G["GLUE_LOCALE_OVERRIDE"] = _G["GLUE_LOCALE_OVERRIDE"] or "ruRU"
|
||||
|
||||
function GetGlueLocale()
|
||||
return _G["GLUE_LOCALE_OVERRIDE"] or "ruRU"
|
||||
end
|
||||
|
||||
local clientLocale = GetLocale and GetLocale() or "enUS"
|
||||
local locale = GetGlueLocale()
|
||||
|
||||
for g, locales in pairs(GlueStrings) do
|
||||
setglobal(g, locales[locale] or locales[clientLocale] or locales["enUS"])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user