traduzione e composer.json

This commit is contained in:
mariano
2026-05-21 11:08:15 +02:00
parent f0eaa76f17
commit f0a5be45ee
15 changed files with 198 additions and 22 deletions
+2 -2
View File
@@ -268,7 +268,7 @@ class Config extends CommonDBTM
'checked' => $is_default,
]);
echo "</td>";
echo "<td><span class='badge bg-info'>Asset Definition</span></td>";
echo "<td><span class='badge bg-info'>" . htmlspecialchars(__('Asset Definition', 'urbackup')) . "</span></td>";
} else {
// Legacy type
echo "<td>";
@@ -278,7 +278,7 @@ class Config extends CommonDBTM
]);
echo "</td>";
echo "<td>" . ($is_default ? htmlspecialchars(__('Yes', 'urbackup')) : '') . "</td>";
echo "<td><span class='badge bg-secondary'>Legacy</span></td>";
echo "<td><span class='badge bg-secondary'>" . htmlspecialchars(__('Legacy', 'urbackup')) . "</span></td>";
}
echo "</tr>";
+4 -4
View File
@@ -386,8 +386,8 @@ class Server extends CommonDBTM
Dropdown::showFromArray(
'protocol',
[
'http' => 'HTTP',
'https' => 'HTTPS',
'http' => __('HTTP', 'urbackup'),
'https' => __('HTTPS', 'urbackup'),
],
[
'value' => $this->fields['protocol'] ?? 'http',
@@ -818,7 +818,7 @@ class Server extends CommonDBTM
}
} catch (\Throwable $e) {
echo '<div class="alert alert-danger">';
echo 'API Error: ' . htmlspecialchars($e->getMessage());
echo htmlspecialchars(__('API Error', 'urbackup')) . ': ' . htmlspecialchars($e->getMessage());
echo '</div>';
return;
}
@@ -1006,7 +1006,7 @@ class Server extends CommonDBTM
echo '<tbody>';
foreach ($unlinkedClients as $uc) {
$clientName = (string) ($uc['name'] ?? 'Unknown');
$clientName = (string) ($uc['name'] ?? __('Unknown', 'urbackup'));
$clientNameLower = strtolower($clientName);
$online = $uc['online'] ?? null;