diff --git a/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php b/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php
index 68925e221..0cdacd6c7 100644
--- a/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php
+++ b/emhttp/plugins/dynamix.docker.manager/include/DockerContainers.php
@@ -194,10 +194,10 @@ foreach ($containers as $ct) {
echo " "._('up-to-date')."";
echo "
";
} elseif (!empty($composestack)) {
- echo " Compose
";
+ echo " "._("Compose")."
";
echo " "._('up-to-date')."";
} else {
- echo " 3rd Party
";
+ echo " "._("3rd Party")."
";
echo " "._('up-to-date')."";
}
break;
@@ -222,10 +222,10 @@ foreach ($containers as $ct) {
echo " "._('not available')."";
echo "";
} elseif (!empty($composestack)) {
- echo " Compose
";
+ echo " "._("Compose")."
";
echo " "._('not available')."";
} else {
- echo " 3rd Party
";
+ echo " "._("3rd Party")."
";
echo " "._('not available')."";
}
break;
@@ -240,27 +240,27 @@ foreach ($containers as $ct) {
// Construct TSinfo from TSstats
$TSinfo = '';
if (!$TSstats["Self"]["Online"]) {
- $TSinfo .= "Online:❌
Please check the logs!
";
+ $TSinfo .= ""._("Online:")."❌
"._("Please check the logs!")."
";
} else {
$TS_version = explode('-', $TSstats["Version"])[0];
if (!empty($TS_version)) {
if (!empty($TS_latest_version)) {
if ($TS_version !== $TS_latest_version) {
- $TSinfo .= "Tailscale:v" . $TS_version . " ➔ v" . $TS_latest_version . " available!
";
+ $TSinfo .= ""._("Tailscale:")."v" . $TS_version . " ➔ v" . $TS_latest_version . " "._("available!")."
";
} else {
- $TSinfo .= "Tailscale:v" . $TS_version . "
";
+ $TSinfo .= ""._("Tailscale:")."v" . $TS_version . "
";
}
} else {
- $TSinfo .= "Tailscale:v" . $TS_version . "
";
+ $TSinfo .= "".("Tailscale:")."v" . $TS_version . "
";
}
}
- $TSinfo .= "Online:✅
";
+ $TSinfo .= ""._("Online:")."✅
";
$TS_DNSName = $TSstats["Self"]["DNSName"];
$TS_HostNameActual = substr($TS_DNSName, 0, strpos($TS_DNSName, '.'));
if (strcasecmp($TS_HostNameActual, $TShostname) !== 0 && !empty($TS_DNSName)) {
- $TSinfo .= "Hostname:Real Hostname ➔ " . $TS_HostNameActual . "
";
+ $TSinfo .= ""._("Hostname:").""._("Real Hostname")." ➔ " . $TS_HostNameActual . "
";
} else {
- $TSinfo .= "Hostname:" . $TShostname . "
";
+ $TSinfo .= ""._("Hostname:")."" . $TShostname . "
";
}
// Map region relay code to cleartext region if TS_derp_list is available
if (!empty($TS_derp_list)) {
@@ -271,31 +271,31 @@ foreach ($containers as $ct) {
}
}
if (!empty($TSregion)) {
- $TSinfo .= "DERP Relay:" . $TSregion . "
";
+ $TSinfo .= ""._("DERP Relay:")."" . $TSregion . "
";
} else {
- $TSinfo .= "DERP Relay:" . $TSstats["Self"]["Relay"] . "
";
+ $TSinfo .= ""._("DERP Relay:")."" . $TSstats["Self"]["Relay"] . "
";
}
} else {
- $TSinfo .= "DERP Relay:" . $TSstats["Self"]["Relay"] . "
";
+ $TSinfo .= ""._("DERP Relay").":" . $TSstats["Self"]["Relay"] . "
";
}
if (!empty($TSstats["Self"]["TailscaleIPs"])) {
- $TSinfo .= "Addresses:" . implode("
", $TSstats["Self"]["TailscaleIPs"]) . "
";
+ $TSinfo .= ""._("Addresses:")."" . implode("
", $TSstats["Self"]["TailscaleIPs"]) . "
";
}
if (!empty($TSstats["Self"]["PrimaryRoutes"])) {
- $TSinfo .= "Routes:" . implode("
", $TSstats["Self"]["PrimaryRoutes"]) . "
";
+ $TSinfo .= ""._("Routes:")."" . implode("
", $TSstats["Self"]["PrimaryRoutes"]) . "
";
}
if ($TSstats["Self"]["ExitNodeOption"]) {
- $TSinfo .= "Is Exit Node:✅
";
+ $TSinfo .= ""._("Is Exit Node:")."✅
";
} else {
if (!empty($TSstats["ExitNodeStatus"])) {
$TS_exit_node_status = ($TSstats["ExitNodeStatus"]["Online"]) ? "✅" : "❌";
- $TSinfo .= "Exit Node:" . strstr($TSstats["ExitNodeStatus"]["TailscaleIPs"][0], '/', true) . " | Status: " . $TS_exit_node_status ."
";
+ $TSinfo .= ""._("Exit Node:")."" . strstr($TSstats["ExitNodeStatus"]["TailscaleIPs"][0], '/', true) . " | Status: " . $TS_exit_node_status ."
";
} else {
- $TSinfo .= "Is Exit Node:❌
";
+ $TSinfo .= ""._("Is Exit Node:")."❌
";
}
}
if (!empty($TSwebGui)) {
- $TSinfo .= "URL:" . $TSwebGui . "
";
+ $TSinfo .= ""._("URL:")."" . $TSwebGui . "
";
}
if (!empty($TSstats["Self"]["KeyExpiry"])) {
$TS_expiry = new DateTime($TSstats["Self"]["KeyExpiry"]);
@@ -303,21 +303,21 @@ foreach ($containers as $ct) {
$TS_expiry_formatted = $TS_expiry->format('Y-m-d');
$TS_expiry_diff = $current_Date->diff($TS_expiry);
if ($TS_expiry_diff->invert) {
- $TSinfo .= "Key Expiry:❌ Expired! Renew/Disable key expiry!
";
+ $TSinfo .= ""._("Key Expiry:")."❌ "._("Expired! Renew/Disable key expiry!")."
";
} else {
- $TSinfo .= "Key Expiry:" . $TS_expiry_formatted . " (" . $TS_expiry_diff->days . " days)
";
+ $TSinfo .= ""._("Key Expiry:")."" . $TS_expiry_formatted . " (" . $TS_expiry_diff->days . " days)
";
}
}
}
// Display TSinfo if data was fetched correctly
- $TS_status = "
";
+ $TS_status = "
";
} else {
// Display message to refresh page if Tailscale in the container wasn't maybe ready to get the data
- $TS_status = "
";
+ $TS_status = "
";
}
} else {
// Display message that container isn't running
- $TS_status = "
";
+ $TS_status = "
";
}
}
echo " ".compress(_($version),12,0)."
";