From 35576deaaa982195f7f5efe521f9498efbae3ff8 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 19 Sep 2023 19:57:43 +0200 Subject: [PATCH] system: simplify a string construct for translation efforts --- src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php | 2 +- src/www/system_gateway_groups_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php index 035112ad7..c53ca3f67 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php +++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php @@ -558,7 +558,7 @@ class Gateways } } } - // exit when tier has (a) usable gateway(s) + // exit when tier has usable gateways if (!empty($result[(string)$gw_group->name])) { break; } diff --git a/src/www/system_gateway_groups_edit.php b/src/www/system_gateway_groups_edit.php index 0e3d818fa..96898485d 100644 --- a/src/www/system_gateway_groups_edit.php +++ b/src/www/system_gateway_groups_edit.php @@ -108,7 +108,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $input_errors[] = gettext("Invalid pool option specified"); } if (count($pconfig['item']) == 0) { - $input_errors[] = gettext("No gateway(s) have been selected to be used in this group"); + $input_errors[] = gettext('No gateway has been selected to be used in this group.'); } if (count($input_errors) == 0) {