* luci/modules/freifunk: translation fixes on contact admin page
[project/luci.git] / modules / freifunk / luasrc / model / cbi / freifunk / contact.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
15 luci.i18n.loadc("freifunk")
16
17 m = Map("freifunk", translate("contact"), translate("contact1"))
18
19 c = m:section(NamedSection, "contact", "public", "")
20
21 c:option(Value, "nickname", translate("ff_nickname"))
22 c:option(Value, "name", translate("ff_name"))
23 c:option(Value, "mail", translate("ff_mail"), translate("ff_mail1"))
24 c:option(Value, "phone", translate("ff_phone"))
25 c:option(Value, "location", translate("ff_location"))
26 c:option(Value, "note", translate("ff_note"))
27
28 m2 = Map("system", translate("geo"))
29
30 s = m2:section(TypedSection, "system", "")
31 s:option(Value, "latitude", translate("latitude", "Breite")).rmempty = true
32 s:option(Value, "longitude", translate("longitude", "Länge")).rmempty = true
33
34 return m, m2