interfaces: do not translate backend status

This commit is contained in:
Franco Fichtner 2015-10-26 08:11:04 +01:00
parent b0926593fe
commit 8ab938ca75

View File

@ -5216,10 +5216,12 @@ function get_interface_info($ifdescr)
}
if (preg_match("/status: (.*)$/", $ici, $matches)) {
if ($matches[1] != "active")
if ($matches[1] != 'active') {
$ifinfo['status'] = $matches[1];
if($ifinfo['status'] == gettext("running"))
$ifinfo['status'] = gettext("up");
}
if ($ifinfo['status'] == 'running') {
$ifinfo['status'] = 'up';
}
}
if (preg_match("/channel (\S*)/", $ici, $matches)) {
$ifinfo['channel'] = $matches[1];