modules/admin-mini: some work on lan and wan configuration
[project/luci.git] / modules / admin-mini / luasrc / model / cbi / mini / luci.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13 $Id$
14 ]]--
15 require("luci.config")
16 m = Map("luci", translate("webui"), translate("a_i_luci1"))
17
18 c = m:section(NamedSection, "main", "core", translate("general"))
19
20 l = c:option(ListValue, "lang", translate("language"))
21
22 local i18ndir = luci.i18n.i18ndir .. "default."
23 for k, v in pairs(luci.config.languages) do
24         if k:sub(1, 1) ~= "." and luci.fs.isfile(i18ndir .. k .. ".lua") then
25                 l:value(k, v)
26         end
27 end
28
29 t = c:option(ListValue, "mediaurlbase", translate("design"))
30 for k, v in pairs(luci.config.themes) do
31         if k:sub(1, 1) ~= "." then
32                 t:value(v, k)
33         end
34 end
35
36 return m