From f131c8463d9219d9a72560db135a35da2c797986 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 6 Nov 2023 17:14:18 +0000 Subject: [PATCH] Update iwRegSet status message + en_US locale --- includes/hostapd.php | 8 ++++---- locale/en_US/LC_MESSAGES/messages.po | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index cda765cb..90ac4fcc 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -509,9 +509,9 @@ function updateHostapdConfig($ignore_broadcast_ssid,$wifiAPEnable,$bridgedEnable */ function iwRegSet(string $country_code, $status) { - $status->addMessage('Setting wireless regulatory domain to '. $country_code, 'success'); - $country_code = escapeshellarg($country_code); - $result = shell_exec("sudo iw reg set $country_code"); - return $result; + $country_code = escapeshellarg($country_code); + $result = shell_exec("sudo iw reg set $country_code"); + $status->addMessage(sprintf(_('Setting wireless regulatory domain to %s'), $country_code, 'success')); + return $result; } diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index 609b404d..80d929ad 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -709,6 +709,9 @@ msgstr "Routing table" msgid "raw output" msgstr "raw output" +msgid "Setting wireless regulatory domain to %s" +msgstr "Setting wireless regulatory domain to %s" + #: includes/system.php msgid "System Information" msgstr "System Information"