* Prepare german translation cleanup
[project/luci.git] / modules / admin-core / luasrc / model / cbi / admin_index / luci.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14 require("luci.config")
15 m = Map("luci", translate("webui"), translate("a_i_luci1", 
16  "Hier können Eigenschaften und die Funktionalität der Oberfläche angepasst werden."))
17
18 c = m:section(NamedSection, "main", "core", translate("general"))
19
20 l = c:option(ListValue, "lang", translate("language"))
21 for k, v in pairs(luci.config.languages) do
22         if k:sub(1, 1) ~= "." then
23                 l:value(k, v)
24         end
25 end
26
27 t = c:option(ListValue, "mediaurlbase", translate("design"))
28 for k, v in pairs(luci.config.themes) do
29         if k:sub(1, 1) ~= "." then
30                 t:value(v, k)
31         end
32 end
33
34 u = m:section(NamedSection, "uci_oncommit", "event", translate("a_i_ucicommit"),
35  translate("a_i_ucicommit1"))
36 u.dynamic = true
37
38 f = m:section(NamedSection, "flash_keep", "extern", translate("a_i_keepflash"),
39  translate("a_i_keepflash1"))
40 f.dynamic = true
41
42 return m