diff --git a/scripts/common.php b/scripts/common.php index d8991bb..1766e33 100644 --- a/scripts/common.php +++ b/scripts/common.php @@ -1005,7 +1005,7 @@ function changeLanguage($model, $language) if ($model == "BirdNET_GLOBAL_3K_V2.3_Model_FP16") { // Install new language label file - $result = syslog_shell_exec("sudo chmod +x $scripts_dir/install_language_label_nm.sh && $scripts_dir/install_language_label_nm.sh -l $language", $user); + $result = syslog_shell_exec("chmod +x $scripts_dir/install_language_label_nm.sh && $scripts_dir/install_language_label_nm.sh -l $language", $user); } else { $result = syslog_shell_exec("$scripts_dir/install_language_label.sh -l $language", $user); } diff --git a/scripts/config.php b/scripts/config.php index 15059d1..b73cb63 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -92,6 +92,7 @@ if(isset($_GET["latitude"])){ } // Update Language settings only if a change is requested + changeLanguage($model, $language); setSetting('SITE_NAME', "\"$site_name\"");