Commit 77529f1d authored by Ad Schellevis's avatar Ad Schellevis

(dashboard) gateways.widget.php, gettext()

parent 4a8994a9
......@@ -70,23 +70,23 @@ $gateways_status = return_gateways_status(true);
$class="info";
if (!empty($gateways_status[$gname])) {
if (stristr($gateways_status[$gname]['status'], "force_down")) {
$online = "Offline (forced)";
$class="danger";
$online = gettext("Offline (forced)");
$class = "danger";
} elseif (stristr($gateways_status[$gname]['status'], "down")) {
$online = "Offline";
$class="danger";
$online = gettext("Offline");
$class = "danger";
} elseif (stristr($gateways_status[$gname]['status'], "loss")) {
$online = "Packetloss";
$class="warning";
$online = gettext("Packetloss");
$class = "warning";
} elseif (stristr($gateways_status[$gname]['status'], "delay")) {
$online = "Latency";
$class="warning";
$online = gettext("Latency");
$class = "warning";
} elseif ($gateways_status[$gname]['status'] == "none") {
$online = "Online";
$class="success";
$online = gettext("Online");
$class = "success";
} elseif ($gateways_status[$gname]['status'] == "") {
$online = "Pending";
$class="info";
$online = gettext("Pending");
$class = "info";
}
}?>
<td style="width:160px;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment