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"