From 398c9d9c9ee63fbc54cc9011949dc9480df01dcb Mon Sep 17 00:00:00 2001 From: thom <thom@amsterdamtech.nl> Date: Mon, 21 Sep 2020 18:08:52 +0200 Subject: [PATCH] Clearer error message for regex error --- interface/web/admin/lib/lang/ar_firewall.lng | 4 ++-- interface/web/admin/lib/lang/br_firewall.lng | 4 ++-- interface/web/admin/lib/lang/br_firewall_list.lng | 4 ++-- interface/web/admin/lib/lang/ca_firewall.lng | 4 ++-- interface/web/admin/lib/lang/dk_firewall.lng | 4 ++-- interface/web/admin/lib/lang/en_firewall.lng | 6 +++--- interface/web/admin/lib/lang/hu_firewall.lng | 4 ++-- interface/web/admin/lib/lang/id_firewall.lng | 4 ++-- interface/web/admin/lib/lang/it_firewall.lng | 4 ++-- interface/web/admin/lib/lang/ro_firewall.lng | 4 ++-- interface/web/admin/lib/lang/ru_firewall.lng | 2 +- interface/web/admin/lib/lang/se_firewall.lng | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/interface/web/admin/lib/lang/ar_firewall.lng b/interface/web/admin/lib/lang/ar_firewall.lng index e626345d3c..4b1efe7540 100644 --- a/interface/web/admin/lib/lang/ar_firewall.lng +++ b/interface/web/admin/lib/lang/ar_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Separated by comma'; $wb['udp_port_help_txt'] = 'Separated by comma'; $wb['active_txt'] = 'Active'; $wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; -$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; -$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in TCP port definition. Allowed characters are numbers, colons (:) and commas.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in UDP port definition. Allowed characters are numbers, colons (:) and commas.'; ?> diff --git a/interface/web/admin/lib/lang/br_firewall.lng b/interface/web/admin/lib/lang/br_firewall.lng index da0936b007..3fd7f77d3e 100644 --- a/interface/web/admin/lib/lang/br_firewall.lng +++ b/interface/web/admin/lib/lang/br_firewall.lng @@ -1,7 +1,7 @@ <?php $wb['server_id_txt'] = 'Servidor'; -$wb['tcp_port_txt'] = 'Portas tcp abertas'; -$wb['udp_port_txt'] = 'Portas udp abertas'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; $wb['tcp_port_help_txt'] = 'Separado por vÃrgula'; $wb['udp_port_help_txt'] = 'Separado por vÃrgula'; $wb['active_txt'] = 'Ativo'; diff --git a/interface/web/admin/lib/lang/br_firewall_list.lng b/interface/web/admin/lib/lang/br_firewall_list.lng index 94ef3aab7d..d90ee33d4e 100644 --- a/interface/web/admin/lib/lang/br_firewall_list.lng +++ b/interface/web/admin/lib/lang/br_firewall_list.lng @@ -2,7 +2,7 @@ $wb['list_head_txt'] = 'Firewall'; $wb['active_txt'] = 'Ativo'; $wb['server_id_txt'] = 'Servidor'; -$wb['tcp_port_txt'] = 'Portas tcp abertas'; -$wb['udp_port_txt'] = 'Portas udp abertas'; +$wb['tcp_port_txt'] = 'Portas TCP abertas'; +$wb['udp_port_txt'] = 'Portas UDP abertas'; $wb['add_new_record_txt'] = 'Adicionar nova regra'; ?> diff --git a/interface/web/admin/lib/lang/ca_firewall.lng b/interface/web/admin/lib/lang/ca_firewall.lng index 06a51c80cf..b81149e1c0 100644 --- a/interface/web/admin/lib/lang/ca_firewall.lng +++ b/interface/web/admin/lib/lang/ca_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Separated by comma'; $wb['udp_port_help_txt'] = 'Separated by comma'; $wb['active_txt'] = 'Active'; $wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; -$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, \\":\\" and \\",\\".'; -$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, \\":\\" and \\",\\".'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in TCP port definition. Allowed characters are numbers, \\":\\" and \\",\\".'; +$wb['udp_ports_error_regex'] = 'Character not allowed in UDP port definition. Allowed characters are numbers, \\":\\" and \\",\\".'; ?> diff --git a/interface/web/admin/lib/lang/dk_firewall.lng b/interface/web/admin/lib/lang/dk_firewall.lng index 96608b2830..8137f0560a 100644 --- a/interface/web/admin/lib/lang/dk_firewall.lng +++ b/interface/web/admin/lib/lang/dk_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Adskilt af komma'; $wb['udp_port_help_txt'] = 'Adskilt af komma'; $wb['active_txt'] = 'Aktiv'; $wb['firewall_error_unique'] = 'Der er allerede en firewall post for denne server.'; -$wb['tcp_ports_error_regex'] = 'Tegn ikke tilladt i tcp port definition. Tilladt tegn er tal, \\":\\" og \\",\\".'; -$wb['udp_ports_error_regex'] = 'Tegn ikke tilladt i udp port definition. Tilladt tegn er tal, \\":\\" og \\",\\".'; +$wb['tcp_ports_error_regex'] = 'Tegn ikke tilladt i TCP port definition. Tilladt tegn er tal, \\":\\" og \\",\\".'; +$wb['udp_ports_error_regex'] = 'Tegn ikke tilladt i UDP port definition. Tilladt tegn er tal, \\":\\" og \\",\\".'; ?> diff --git a/interface/web/admin/lib/lang/en_firewall.lng b/interface/web/admin/lib/lang/en_firewall.lng index 025108bebe..c62cd563e7 100644 --- a/interface/web/admin/lib/lang/en_firewall.lng +++ b/interface/web/admin/lib/lang/en_firewall.lng @@ -7,6 +7,6 @@ $wb["udp_port_help_txt"] = 'Separated by comma'; $wb["active_txt"] = 'Active'; $wb["firewall_error_unique"] = 'There is already a firewall record for this server.'; $wb["active_txt"] = 'Active'; -$wb["tcp_ports_error_regex"] = 'Character not allowed in tcp port definition. Allowed characters are numbers, ":" and ",".'; -$wb["udp_ports_error_regex"] = 'Character not allowed in udp port definition. Allowed characters are numbers, ":" and ",".'; -?> \ No newline at end of file +$wb["tcp_ports_error_regex"] = 'Character not allowed in TCP port definition. Allowed characters are numbers, colons (:) and commas.'; +$wb["udp_ports_error_regex"] = 'Character not allowed in UDP port definition. Allowed characters are numbers, colons (:) and commas.'; +?> diff --git a/interface/web/admin/lib/lang/hu_firewall.lng b/interface/web/admin/lib/lang/hu_firewall.lng index 461c16d324..1346d37657 100644 --- a/interface/web/admin/lib/lang/hu_firewall.lng +++ b/interface/web/admin/lib/lang/hu_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'VesszÅ‘vel elválasztva'; $wb['udp_port_help_txt'] = 'VesszÅ‘vel elválasztva'; $wb['active_txt'] = 'AktÃv'; $wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; -$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; -$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in TCP port definition. Allowed characters are numbers, colons (:) and commas.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in UDP port definition. Allowed characters are numbers, colons (:) and commas.'; ?> diff --git a/interface/web/admin/lib/lang/id_firewall.lng b/interface/web/admin/lib/lang/id_firewall.lng index 34e1342259..f335c3f94f 100644 --- a/interface/web/admin/lib/lang/id_firewall.lng +++ b/interface/web/admin/lib/lang/id_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Dipisahkan oleh koma'; $wb['udp_port_help_txt'] = 'Dipisahkan oleh koma'; $wb['active_txt'] = 'Aktif'; $wb['firewall_error_unique'] = 'Telah ada record firewall untuk server ini.'; -$wb['tcp_ports_error_regex'] = 'Karakter di definisi port tcp tidak diperbolehkan. Karakter yang diizinkan adalah angka, : dan ,.'; -$wb['udp_ports_error_regex'] = 'Karakter di definisi port udp tidak diperbolehkan. Karakter yang diizinkan adalah angka, : dan ,.'; +$wb['tcp_ports_error_regex'] = 'Karakter di definisi port TCP tidak diperbolehkan. Karakter yang diizinkan adalah angka, : dan ,.'; +$wb['udp_ports_error_regex'] = 'Karakter di definisi port UDP tidak diperbolehkan. Karakter yang diizinkan adalah angka, : dan ,.'; ?> diff --git a/interface/web/admin/lib/lang/it_firewall.lng b/interface/web/admin/lib/lang/it_firewall.lng index 95a4336dae..d523ea79f7 100644 --- a/interface/web/admin/lib/lang/it_firewall.lng +++ b/interface/web/admin/lib/lang/it_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Separate dalla virgola'; $wb['udp_port_help_txt'] = 'Separate dalle virgola'; $wb['active_txt'] = 'Attivo'; $wb['firewall_error_unique'] = 'Esiste già un record firewall per questo server.'; -$wb['tcp_ports_error_regex'] = 'Carattere non ammesso nella definizione di tcp port. Caratteri ammessi sono numeri, : e ,.'; -$wb['udp_ports_error_regex'] = 'Carattere non ammesso nella definizione di udp port. Caratteri ammessi sono numeri, : and ,.'; +$wb['tcp_ports_error_regex'] = 'Carattere non ammesso nella definizione di TCP port. Caratteri ammessi sono numeri, : e ,.'; +$wb['udp_ports_error_regex'] = 'Carattere non ammesso nella definizione di UDP port. Caratteri ammessi sono numeri, : and ,.'; ?> diff --git a/interface/web/admin/lib/lang/ro_firewall.lng b/interface/web/admin/lib/lang/ro_firewall.lng index e626345d3c..4b1efe7540 100644 --- a/interface/web/admin/lib/lang/ro_firewall.lng +++ b/interface/web/admin/lib/lang/ro_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Separated by comma'; $wb['udp_port_help_txt'] = 'Separated by comma'; $wb['active_txt'] = 'Active'; $wb['firewall_error_unique'] = 'There is already a firewall record for this server.'; -$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; -$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in TCP port definition. Allowed characters are numbers, colons (:) and commas.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in UDP port definition. Allowed characters are numbers, colons (:) and commas.'; ?> diff --git a/interface/web/admin/lib/lang/ru_firewall.lng b/interface/web/admin/lib/lang/ru_firewall.lng index 70beb30437..179ad739ba 100644 --- a/interface/web/admin/lib/lang/ru_firewall.lng +++ b/interface/web/admin/lib/lang/ru_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'ПеречиÑлить порты TCP через з $wb['udp_port_help_txt'] = 'ПеречиÑлить порты UDP через запÑтую'; $wb['active_txt'] = 'Ðктивно'; $wb['firewall_error_unique'] = 'Уже еÑÑ‚ÑŒ Ñ‚Ð°ÐºÐ°Ñ Ð·Ð°Ð¿Ð¸ÑÑŒ брандмауÑра Ð´Ð»Ñ Ñтого Ñервера.'; -$wb['tcp_ports_error_regex'] = 'ÐедопуÑтимый Ñимвол в указании tcp порта. Корректные Ñиволы - цифры, \\":\\" и \\",\\"'; +$wb['tcp_ports_error_regex'] = 'ÐедопуÑтимый Ñимвол в указании TCP порта. Корректные Ñиволы - цифры, \\":\\" и \\",\\"'; $wb['udp_ports_error_regex'] = 'Ðекорректный Ñимвол в указании UDP порта. ДопуÑтимые Ñиволы - цифры, \\":\\" и \\",\\"'; ?> diff --git a/interface/web/admin/lib/lang/se_firewall.lng b/interface/web/admin/lib/lang/se_firewall.lng index 123a648300..fdbfa5ee14 100644 --- a/interface/web/admin/lib/lang/se_firewall.lng +++ b/interface/web/admin/lib/lang/se_firewall.lng @@ -6,6 +6,6 @@ $wb['tcp_port_help_txt'] = 'Kommaseparerade'; $wb['udp_port_help_txt'] = 'Kommaseparerade'; $wb['active_txt'] = 'Aktiv'; $wb['firewall_error_unique'] = 'Det finns redan ett brandväggsinlägg för den här servern'; -$wb['tcp_ports_error_regex'] = 'Character not allowed in tcp port definition. Allowed characters are numbers, : and ,.'; -$wb['udp_ports_error_regex'] = 'Character not allowed in udp port definition. Allowed characters are numbers, : and ,.'; +$wb['tcp_ports_error_regex'] = 'Character not allowed in TCP port definition. Allowed characters are numbers, colons (:) and commas.'; +$wb['udp_ports_error_regex'] = 'Character not allowed in UDP port definition. Allowed characters are numbers, colons (:) and commas.'; ?> -- GitLab