Revert "Update iwRegSet status message, en_US locale + compile .mo"

This reverts commit 9343b11cc9.
This commit is contained in:
billz
2023-11-06 17:08:52 +00:00
parent 9343b11cc9
commit 6383f9b88b
3 changed files with 4 additions and 7 deletions

View File

@@ -509,9 +509,9 @@ function updateHostapdConfig($ignore_broadcast_ssid,$wifiAPEnable,$bridgedEnable
*/
function iwRegSet(string $country_code, $status)
{
$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;
$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;
}