Make scripts translatable

This commit is contained in:
danwin1210 committed 2023-01-22 20:02:41 +01:00
1 parent 21eb38c393
commit 78ba449fa3
22 files changed
+1652 -418

No files matched your search

+3 -3
View File
@@ -9,7 +9,7 @@ $update=$db->prepare('UPDATE disk_quota SET quota_size_used = ?, quota_files_use
foreach($all_accounts as $tmp){
$system_account = sanitize_system_account($tmp['system_account']);
if($system_account === false){
echo "ERROR: Account $tmp[system_account] looks strange\n";
printf(_("ERROR: Account %s looks strange").PHP_EOL, $tmp['system_account']);
continue;
}
$quota = shell_exec('quota -pu ' . escapeshellarg($tmp['system_account']));
@@ -25,7 +25,7 @@ foreach($all_accounts as $tmp){
foreach($all_accounts as $tmp){
$system_account = sanitize_system_account($tmp['system_account']);
if($system_account === false){
echo "ERROR: Account $tmp[system_account] looks strange\n";
printf(_("ERROR: Account %s looks strange").PHP_EOL, $tmp['system_account']);
continue;
}
exec('find '.escapeshellarg("/home/$tmp[system_account]/tmp").' -path '.escapeshellarg("/home/$tmp[system_account]/tmp/*").' -cmin +1440 -delete');
@@ -41,7 +41,7 @@ $all=$stmt->fetchAll(PDO::FETCH_ASSOC);
foreach($all as $tmp){
$system_account = sanitize_system_account($tmp['system_account']);
if($system_account === false){
echo "ERROR: Account $tmp[system_account] looks strange\n";
printf(_("ERROR: Account %s looks strange").PHP_EOL, $tmp['system_account']);
continue;
}
//check modification times