mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
replaced other/others with 'and X more'
This commit is contained in:
parent
024f8b4572
commit
7a76cbf880
6 changed files with 9 additions and 7 deletions
|
|
@ -43,13 +43,15 @@ dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|||
page_utils.print_page_title(i18n("endpoint_notifications.endpoint_list"))
|
||||
|
||||
-- localize endpoint name types in a table
|
||||
local endpoints_types = notification_configs.get_types()
|
||||
local endpoints_types = notification_configs.get_types(false)
|
||||
local endpoint_types_labels = {}
|
||||
-- create a table to filter recipient by endpoint's type
|
||||
local endpoint_type_filters = {}
|
||||
for endpoint_key, endpoint in pairs(endpoints_types) do
|
||||
local label = i18n('endpoint_notifications.types.'..endpoint_key) or endpoint.name
|
||||
|
||||
local label = endpoint.name
|
||||
endpoint_types_labels[endpoint_key] = label
|
||||
|
||||
endpoint_type_filters[#endpoint_type_filters+1] = {
|
||||
label = label,
|
||||
regex = endpoint_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue