From f12acd8a11a200d8f4c7c2bcccc38e44be56a983 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 6 Jul 2008 15:21:12 +0000 Subject: libs/web: Removed deprecated i18n-file naming convention --- modules/admin-core/luasrc/model/cbi/admin_index/luci.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/admin-core/luasrc') diff --git a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua index be4b08cf5..3fdccbf80 100644 --- a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua +++ b/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua @@ -21,9 +21,7 @@ l = c:option(ListValue, "lang", translate("language")) local i18ndir = luci.i18n.i18ndir .. "default." for k, v in pairs(luci.config.languages) do - if k:sub(1, 1) ~= "." - and (luci.fs.isfile(i18ndir .. k .. ".lua") - or luci.fs.isfile(i18ndir .. k)) then + if k:sub(1, 1) ~= "." and luci.fs.isfile(i18ndir .. k .. ".lua") then l:value(k, v) end end -- cgit v1.2.3