summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-diag-devinfo/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-diag-devinfo/luasrc/controller')
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua40
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua22
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua6
-rw-r--r--applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua6
4 files changed, 37 insertions, 37 deletions
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
index 58009c5969..ba6bdcd9c1 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
@@ -90,11 +90,11 @@ function parse_output(devmap, outnets, haslink, type, mini, debug)
row["mac"] = ""
end
if (type == "smap") then
- row["vendor"] = luci.i18n.translate("l_d_d_dc_nosipdev")
+ row["vendor"] = luci.i18n.translate("No SIP devices")
else
- row["vendor"] = luci.i18n.translate("l_d_d_dc_nodev")
+ row["vendor"] = luci.i18n.translate("No devices detected")
end
- row["type"] = luci.i18n.translate("l_d_d_dc_checkothernet")
+ row["type"] = luci.i18n.translate("check other networks")
if (not mini) then
row["model"] = ""
end
@@ -109,40 +109,40 @@ function parse_output(devmap, outnets, haslink, type, mini, debug)
local s
if (type == "smap") then
if (mini) then
- s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("l_d_d_dc_sipdev_found_mini") .. " " .. curnet)
+ s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("SIP devices discovered for") .. " " .. curnet)
else
local interfacestring = ""
if ( interface ~= "" ) then
interfacestring = ", " .. interface
end
- s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("l_d_d_dc_sipdev_found_admin") .. " " .. curnet .. " (" .. subnet .. ":" .. ports .. interfacestring .. ")")
+ s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("SIP devices discovered for") .. " " .. curnet .. " (" .. subnet .. ":" .. ports .. interfacestring .. ")")
end
s.template = "diag/smapsection"
else
if (mini) then
- s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("l_dd_dc_netdev_found_mini") .. " " .. curnet)
+ s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("Devices discovered for") .. " " .. curnet)
else
local interfacestring = ""
if ( interface ~= "" ) then
interfacestring = ", " .. interface
end
- s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("l_d_d_dc_netdev_found_admin", "Devices discovered for") .. " " .. curnet .. " (" .. subnet .. interfacestring .. ")")
+ s = devmap:section(luci.cbi.Table, netdevs, luci.i18n.translate("Devices discovered for") .. " " .. curnet .. " (" .. subnet .. interfacestring .. ")")
end
end
- s:option(DummyValue, "ip", translate("l_d_d_dc_mac_ip"))
+ s:option(DummyValue, "ip", translate("IP Address"))
if (not mini) then
- s:option(DummyValue, "mac", translate("l_d_d_dc_mac_address"))
+ s:option(DummyValue, "mac", translate("MAC Address"))
end
- s:option(DummyValue, "vendor", translate("l_d_d_dc_mac_vendor"))
- s:option(DummyValue, "type", translate("l_d_d_dc_mac_device_type"))
+ s:option(DummyValue, "vendor", translate("Vendor"))
+ s:option(DummyValue, "type", translate("Device Type"))
if (not mini) then
- s:option(DummyValue, "model", translate("l_d_d_dc_mac_model"))
+ s:option(DummyValue, "model", translate("Model"))
end
if (haslink) then
- s:option(DummyValue, "config_page", translate("l_d_d_dc_config_page"))
+ s:option(DummyValue, "config_page", translate("Link to Device"))
end
if (debug) then
- s:option(DummyValue, "raw", translate("l_d_d_dc_raw"))
+ s:option(DummyValue, "raw", translate("Raw"))
end
curnet = next(outnets, curnet)
end
@@ -170,24 +170,24 @@ end
function config_devinfo_scan(map, scannet)
local o
- o = scannet:option(luci.cbi.Flag, "enable", translate("l_d_d_dc_enable"))
+ o = scannet:option(luci.cbi.Flag, "enable", translate("Enable"))
o.optional = false
o.rmempty = false
- o = scannet:option(luci.cbi.Value, "interface", translate("l_d_d_dc_interface"))
+ o = scannet:option(luci.cbi.Value, "interface", translate("Interface"))
o.optional = false
luci.controller.luci_diag.devinfo_common.cbi_add_networks(o)
local scansubnet
- scansubnet = scannet:option(luci.cbi.Value, "subnet", translate("l_d_d_dc_subnet"))
+ scansubnet = scannet:option(luci.cbi.Value, "subnet", translate("Subnet"))
scansubnet.optional = false
- o = scannet:option(luci.cbi.Value, "timeout", translate("l_d_d_dc_timeout"), translate("l_d_d_dc_timeout_descr"))
+ o = scannet:option(luci.cbi.Value, "timeout", translate("Timeout"), translate("Time to wait for responses in seconds (default 10)"))
o.optional = true
- o = scannet:option(luci.cbi.Value, "repeat_count", translate("l_d_d_dc_repeat_count"), translate("l_d_d_dc_repeat_count_descr"))
+ o = scannet:option(luci.cbi.Value, "repeat_count", translate("Repeat Count"), translate("Number of times to send requests (default 1)"))
o.optional = true
- o = scannet:option(luci.cbi.Value, "sleepreq", translate("l_d_d_dc_sleep"), translate("l_d_d_dc_sleep_desc"))
+ o = scannet:option(luci.cbi.Value, "sleepreq", translate("Sleep Between Requests"), translate("Milliseconds to sleep between requests (default 100)"))
o.optional = true
end \ No newline at end of file
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
index 0d8da66b6c..e40a3e82cc 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/luci_diag_devinfo.lua
@@ -18,51 +18,51 @@ function index()
require("luci.i18n")
luci.i18n.loadc("diag_devinfo")
- local e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")), luci.i18n.translate("l_d_d_ldd_diag_smap_devinfo"), 10)
+ local e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")), luci.i18n.translate("Phones"), 10)
e.leaf = true
e.subindex = true
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"admin", "voice", "diag", "phones", "config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("l_d_d_ldd_config"), 10)
+ e = entry({"admin", "voice", "diag", "phones", "config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("Configure"), 10)
e.i18n = "diag_devinfo"
- e = entry({"admin", "status", "smap_devinfo"}, cbi("luci_diag/smap_devinfo"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_config"), 120)
+ e = entry({"admin", "status", "smap_devinfo"}, cbi("luci_diag/smap_devinfo"), luci.i18n.translate("SIP Devices on Network"), 120)
e.leaf = true
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"admin", "network", "diag_config", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo_scan"), 100)
+ e = entry({"admin", "network", "diag_config", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config"), luci.i18n.translate("Network Device Scan"), 100)
e.leaf = true
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"admin", "network", "diag_config", "smap_devinfo_config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_scan_config"))
+ e = entry({"admin", "network", "diag_config", "smap_devinfo_config"}, cbi("luci_diag/smap_devinfo_config"), luci.i18n.translate("SIP Device Scan"))
e.leaf = true
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"admin", "status", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo"), 90)
+ e = entry({"admin", "status", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo"), luci.i18n.translate("Devices on Network"), 90)
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"admin", "network", "mactodevinfo"}, cbi("luci_diag/mactodevinfo"), luci.i18n.translate("l_d_d_ldd_mac_to_devinfo_overrides"), 190)
+ e = entry({"admin", "network", "mactodevinfo"}, cbi("luci_diag/mactodevinfo"), luci.i18n.translate("MAC Device Info Overrides"), 190)
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"mini", "diag", "phone_scan"}, cbi("luci_diag/smap_devinfo_mini"), luci.i18n.translate("l_d_d_ldd_diag_smap_devinfo_scan_mini"), 100)
+ e = entry({"mini", "diag", "phone_scan"}, cbi("luci_diag/smap_devinfo_mini"), luci.i18n.translate("Phone Scan"), 100)
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"mini", "voice", "phones", "phone_scan_config"}, cbi("luci_diag/smap_devinfo_config_mini"), luci.i18n.translate("l_d_d_ldd_smap_devinfo_config_scan_miini"), 90)
+ e = entry({"mini", "voice", "phones", "phone_scan_config"}, cbi("luci_diag/smap_devinfo_config_mini"), luci.i18n.translate("Config Phone Scan"), 90)
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"mini", "diag", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo_mini"), luci.i18n.translate("l_d_d_ldd_diag_netdiscover_devinfo_scan_mini"), 10)
+ e = entry({"mini", "diag", "netdiscover_devinfo"}, cbi("luci_diag/netdiscover_devinfo_mini"), luci.i18n.translate("Network Device Scan"), 10)
e.i18n = "diag_devinfo"
e.dependent = true
- e = entry({"mini", "network", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config_mini"), luci.i18n.translate("l_d_d_ldd_netdiscover_devinfo_scan_config_mini"))
+ e = entry({"mini", "network", "netdiscover_devinfo_config"}, cbi("luci_diag/netdiscover_devinfo_config_mini"), luci.i18n.translate("Device Scan Config"))
e.i18n = "diag_devinfo"
e.dependent = true
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
index 71dc34081c..0cd981e053 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
@@ -81,15 +81,15 @@ end
function action_links(netdiscovermap, mini)
luci.i18n.loadc("diag_devinfo")
- s = netdiscovermap:section(SimpleSection, "", translate("l_d_d_nc_netdiscover_actions"))
- b = s:option(DummyValue, "_config", translate("l_d_d_nc_config_scan"))
+ s = netdiscovermap:section(SimpleSection, "", translate("Actions"))
+ b = s:option(DummyValue, "_config", translate("Configure Scans"))
b.value = ""
if (mini) then
b.titleref = luci.dispatcher.build_url("mini", "network", "netdiscover_devinfo_config")
else
b.titleref = luci.dispatcher.build_url("admin", "network", "diag_config", "netdiscover_devinfo_config")
end
- b = s:option(DummyValue, "_scans", translate("l_d_d_nc_redo_scans"))
+ b = s:option(DummyValue, "_scans", translate("Repeat Scans (this can take a few minutes)"))
b.value = ""
if (mini) then
b.titleref = luci.dispatcher.build_url("mini", "diag", "netdiscover_devinfo")
diff --git a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
index e5cf14d9f2..3d02d689a4 100644
--- a/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
+++ b/applications/luci-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua
@@ -91,15 +91,15 @@ end
function action_links(smapmap, mini)
luci.i18n.loadc("diag_devinfo")
- s = smapmap:section(SimpleSection, "", translate("l_d_d_sc_smap_actions"))
- b = s:option(DummyValue, "_config", translate("l_d_d_sc_config_scan"))
+ s = smapmap:section(SimpleSection, "", translate("Actions"))
+ b = s:option(DummyValue, "_config", translate("Configure Scans"))
b.value = ""
if (mini) then
b.titleref = luci.dispatcher.build_url("mini", "voice", "phones", "phone_scan_config")
else
b.titleref = luci.dispatcher.build_url("admin", "network", "diag_config", "smap_devinfo_config")
end
- b = s:option(DummyValue, "_scans", translate("l_d_d_sc_redo_scans"))
+ b = s:option(DummyValue, "_scans", translate("Repeat Scans (this can take a few minutes)"))
b.value = ""
if (mini) then
b.titleref = luci.dispatcher.build_url("mini", "diag", "phone_scan")