summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc/model/cbi
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-02-02 10:55:38 +0000
committerManuel Munz <freifunk@somakoma.de>2011-02-02 10:55:38 +0000
commit8ab48be60630037fafeb21eb2f82147e0f45e511 (patch)
treecee6a97ea2e2c6d70adbef0ecf8d0bdd82d9a29b /modules/freifunk/luasrc/model/cbi
parent2414ae3f9a2a305afc3b754b3e5f3e29c953aa95 (diff)
modules/freifunk: i18n for basics.lua and helptext for latlon (#177)
Diffstat (limited to 'modules/freifunk/luasrc/model/cbi')
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/basics.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
index 70bc8ad477..b404181dc8 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
@@ -36,7 +36,7 @@ n = Map("system", translate("Basic system settings"))
b = n:section(TypedSection, "system")
b.anonymous = true
-hn = b:option(Value, "hostname", "hostname")
+hn = b:option(Value, "hostname", translate("Hostname"))
hn.rmempty = false
function hn.validate(self, value)
if value == nil then
@@ -48,13 +48,13 @@ function hn.validate(self, value)
end
end
-loc = b:option(Value, "location", "Location")
+loc = b:option(Value, "location", translate("Location"))
loc.rmempty = false
-lat = b:option(Value, "latitude", "latitude")
+lat = b:option(Value, "latitude", translate("Latitude"), translate("e.g.") .. " 48.12345")
lat.rmempty = false
-lon = b:option(Value, "longitude", "longitude")
+lon = b:option(Value, "longitude", translate("Longitude"), translate("e.g.") .. " 10.12345")
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?)
]]--
+--[[ this needs to be fixed
local class = util.class
local co = "profile_augsburg"
local syslat = uci:get_first(co, "community", "latitude")
@@ -108,6 +109,6 @@ end
osm.displaytext="OpenStreetMap anzeigen"
osm.hidetext="OpenStreetMap verbergen"
-
+]]
return m, n