Update iwRegSet status message + en_US locale

This commit is contained in:
billz 2023-11-06 17:14:18 +00:00
parent 6383f9b88b
commit f131c8463d
2 changed files with 7 additions and 4 deletions

View file

@ -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;
}

View file

@ -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"