summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-16 04:51:28 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-16 04:51:28 +0000
commit843641d98e2d4f356f011aca2aade498a7dc69bd (patch)
tree7acd7456412bacb86e90766d18485b1e868ed746 /modules/admin-full/luasrc/model
parentaed5544dc99466bcd3002bfe7715341c5ca4b760 (diff)
modules/admin-mini, modules/admin-full: fix language selection, broke with lua->lmo transition
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_index/luci.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
index 30e8ddcc17..dc9eb1e9e9 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_index/luci.lua
@@ -32,10 +32,7 @@ l:value("auto")
local i18ndir = luci.i18n.i18ndir .. "default."
for k, v in luci.util.kspairs(luci.config.languages) do
local file = i18ndir .. k:gsub("_", "-")
- if k:sub(1, 1) ~= "." and (
- fs.access(file .. ".lua") or
- fs.access(file .. ".lua.gz")
- ) then
+ if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
l:value(k, v)
end
end