all: change most translate statements to new format, some need manual cleanup
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_services / httpd.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 m = Map("httpd", "Busybox HTTPd", translate("A small webserver which can be used to serve <abbr title=\"Lua Configuration Interface\">LuCI</abbr>."))
15
16 s = m:section(TypedSection, "httpd", "")
17 s.anonymous = true
18 s.addremove = true
19
20 port = s:option(Value, "port", translate("Port"))
21 port.isinteger = true
22
23 s:option(Value, "home", translate("Document root"))
24
25 config = s:option(Value, "c_file", translate("Configuration file"), translate("defaults to <code>/etc/httpd.conf</code>"))
26 config.rmempty = true
27
28 realm = s:option(Value, "realm", translate("Authentication Realm"), translate("The realm which will be displayed at the authentication prompt for protected pages."))
29 realm.rmempty = true
30
31 return m