summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-mini')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/luci.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
index 9eea8715ed..d3afd5537b 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/luci.lua
@@ -29,7 +29,11 @@ l:value("auto")
local i18ndir = luci.i18n.i18ndir .. "default."
for k, v in pairs(luci.config.languages) do
- if k:sub(1, 1) ~= "." and luci.fs.access(i18ndir .. k:gsub("_", "-") .. ".lua") then
+ local file = i18ndir .. k:gsub("_", "-")
+ if k:sub(1, 1) ~= "." and (
+ luci.fs.access(file .. ".lua") or
+ luci.fs.access(file .. ".lua.gz")
+ ) then
l:value(k, v)
end
end