modules/freifunk: i18n for basics.lua and helptext for latlon (#177)
This commit is contained in:
parent
2414ae3f9a
commit
8ab48be606
1 changed files with 6 additions and 5 deletions
|
@ -36,7 +36,7 @@ n = Map("system", translate("Basic system settings"))
|
||||||
b = n:section(TypedSection, "system")
|
b = n:section(TypedSection, "system")
|
||||||
b.anonymous = true
|
b.anonymous = true
|
||||||
|
|
||||||
hn = b:option(Value, "hostname", "hostname")
|
hn = b:option(Value, "hostname", translate("Hostname"))
|
||||||
hn.rmempty = false
|
hn.rmempty = false
|
||||||
function hn.validate(self, value)
|
function hn.validate(self, value)
|
||||||
if value == nil then
|
if value == nil then
|
||||||
|
@ -48,13 +48,13 @@ function hn.validate(self, value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
loc = b:option(Value, "location", "Location")
|
loc = b:option(Value, "location", translate("Location"))
|
||||||
loc.rmempty = false
|
loc.rmempty = false
|
||||||
|
|
||||||
lat = b:option(Value, "latitude", "latitude")
|
lat = b:option(Value, "latitude", translate("Latitude"), translate("e.g.") .. " 48.12345")
|
||||||
lat.rmempty = false
|
lat.rmempty = false
|
||||||
|
|
||||||
lon = b:option(Value, "longitude", "longitude")
|
lon = b:option(Value, "longitude", translate("Longitude"), translate("e.g.") .. " 10.12345")
|
||||||
lon.rmempty = false
|
lon.rmempty = false
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
@ -63,6 +63,7 @@ Makes use of resources/OSMLatLon.htm and htdocs/resources/osm.js
|
||||||
(is that the right place for files like these?)
|
(is that the right place for files like these?)
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
|
--[[ this needs to be fixed
|
||||||
local class = util.class
|
local class = util.class
|
||||||
local co = "profile_augsburg"
|
local co = "profile_augsburg"
|
||||||
local syslat = uci:get_first(co, "community", "latitude")
|
local syslat = uci:get_first(co, "community", "latitude")
|
||||||
|
@ -108,6 +109,6 @@ end
|
||||||
|
|
||||||
osm.displaytext="OpenStreetMap anzeigen"
|
osm.displaytext="OpenStreetMap anzeigen"
|
||||||
osm.hidetext="OpenStreetMap verbergen"
|
osm.hidetext="OpenStreetMap verbergen"
|
||||||
|
]]
|
||||||
|
|
||||||
return m, n
|
return m, n
|
||||||
|
|
Loading…
Reference in a new issue