replaced other/others with 'and X more'

This commit is contained in:
gabryon99 2020-09-14 15:43:05 +02:00
parent 024f8b4572
commit 7a76cbf880
6 changed files with 9 additions and 7 deletions

View file

@ -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,