traduzione e composer.json
This commit is contained in:
+2
-2
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user