libs/web: Removed deprecated i18n-file naming convention

This commit is contained in:
Steven Barth 2008-07-06 15:21:12 +00:00
parent 8f770fd17a
commit f12acd8a11
2 changed files with 1 additions and 4 deletions

View file

@ -43,7 +43,6 @@ function load(file, lang, force)
lang = lang or ""
if force or not loaded[lang] or not loaded[lang][file] then
local f = loadfile(i18ndir .. file .. "." .. lang .. ".lua")
or loadfile(i18ndir .. file .. "." .. lang)
if f then
table[lang] = table[lang] or {}
setfenv(f, table[lang])

View file

@ -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