diff options
Diffstat (limited to 'libs/web/luasrc/i18n.lua')
-rw-r--r-- | libs/web/luasrc/i18n.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/web/luasrc/i18n.lua b/libs/web/luasrc/i18n.lua index 4b3adf7ebb..4db9c33435 100644 --- a/libs/web/luasrc/i18n.lua +++ b/libs/web/luasrc/i18n.lua @@ -47,7 +47,9 @@ end function load(file, lang, force) lang = lang and lang:gsub("_", "-") or "" if force or not loaded[lang] or not loaded[lang][file] then - local f = loadfile(i18ndir .. file .. "." .. lang .. ".lua") + local f = loadfile(i18ndir .. file .. "." .. lang .. ".lua") or + loadfile(i18ndir .. file .. "." .. lang .. ".lua.gz") + if f then table[lang] = table[lang] or {} setfenv(f, table[lang]) |