перевод на русский язык

This commit is contained in:
2026-03-15 16:39:56 +04:00
parent 0251953122
commit 44dd95dbd0
11 changed files with 335 additions and 199 deletions
+13 -8
View File
@@ -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