1 -- Copyright 2008 Steven Barth <steven@midlink.org>
2 -- Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
3 -- Licensed to the public under the Apache License 2.0.
6 local fs = require "nixio.fs"
8 m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customize the settings and the functionality of <abbr title=\"Lua Configuration Interface\">LuCI</abbr>."))
10 -- force reload of global luci config namespace to reflect the changes
11 function m.commit_handler(self)
12 package.loaded["luci.config"] = nil
17 c = m:section(NamedSection, "main", "core", translate("General"))
19 l = c:option(ListValue, "lang", translate("Language"))
22 local i18ndir = luci.i18n.i18ndir .. "base."
23 for k, v in luci.util.kspairs(luci.config.languages) do
24 local file = i18ndir .. k:gsub("_", "-")
25 if k:sub(1, 1) ~= "." and fs.access(file .. ".lmo") then
30 t = c:option(ListValue, "mediaurlbase", translate("Design"))
31 for k, v in pairs(luci.config.themes) do
32 if k:sub(1, 1) ~= "." then