Enable menu translation (#10298)

And better translation support for sensors, not complete
This commit is contained in:
Tony Murray
2019-06-04 20:03:50 -05:00
committed by GitHub
parent cc0fa745b2
commit 6ba05cdbbb
9 changed files with 556 additions and 232 deletions

View File

@@ -58,7 +58,7 @@ function printEntPhysical($device, $ent, $level, $class)
}
if ($ent['entPhysicalClass'] == 'sensor' && isset($sensor)) {
echo ' ('.trim($sensor['sensor_current'] . ' ' . get_units_from_sensor($sensor)) . ')';
echo ' (' . trim($sensor['sensor_current'] . ' ' . __('sensors.' . $sensor['sensor_class'] . '.unit')) . ')';
}
if (isset($link)) {