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.mo b/locale/en_US/LC_MESSAGES/messages.mo index 9bf6a3bd..8dae2582 100644 Binary files a/locale/en_US/LC_MESSAGES/messages.mo and b/locale/en_US/LC_MESSAGES/messages.mo differ diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index 609b404d..91d84bb9 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -67,6 +67,9 @@ msgstr "System" msgid "About RaspAP" msgstr "About RaspAP" +msgid "Setting wireless regulatory domain to %s" +msgstr "Setting wireless regulatory domain to %s" + #: includes/admin.php msgid "Authentication settings" msgstr "Authentication settings"