mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Localizes discover.lua page
This commit is contained in:
parent
b4ff106a5b
commit
5db3192169
2 changed files with 10 additions and 4 deletions
|
|
@ -367,7 +367,7 @@ local function discoverARP()
|
|||
|
||||
|
||||
if(arp_mdns == nil) then
|
||||
status = discoverStatus("ERROR", "Unable to start ARP network discovery")
|
||||
status = discoverStatus("ERROR", i18n("discover.err_unable_to_arp_discovery"))
|
||||
else
|
||||
-- Add the known macs to the list
|
||||
local known_macs = interface.getMacsInfo(nil, 999, 0, false, 0, tonumber(vlan), true, true, nil) or {}
|
||||
|
|
@ -538,7 +538,7 @@ end
|
|||
|
||||
-- #############################################################################
|
||||
|
||||
print("<p> <H2>"..ifname.." Network Discovery</H2><p> <p>\n")
|
||||
print("<p> <H2>"..ifname.." "..i18n("discover.network_discovery").."</H2><p> <p>\n")
|
||||
|
||||
local discovered = discover2table(ifname)
|
||||
|
||||
|
|
@ -546,8 +546,8 @@ if discovered["status"]["code"] ~= "OK" then
|
|||
print('<div class=\"alert alert-danger\"><i class="fa fa-warning fa-lg"></i>'..discovered["status"]["message"]..'</div>')
|
||||
|
||||
else
|
||||
print("<table class=\"table table-bordered table-striped\">\n<tr><th>IP</th><th>Name</th><th>Manufacturer</th><th>MAC</th>")
|
||||
print("<th>Information</th><th>Device</th></tr>")
|
||||
print("<table class=\"table table-bordered table-striped\">\n<tr><th>"..i18n("ip_address").."</th><th>"..i18n("name").."</th><th>"..i18n("mac_stats.manufacturer").."</th><th>"..i18n("mac_address").."</th>")
|
||||
print("<th>"..i18n("info").."</th><th>"..i18n("discover.device").."</th></tr>")
|
||||
|
||||
for _, el in ipairs(discovered["devices"] or {}) do
|
||||
print("<tr>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue