mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Enable menu translation (#10298)
And better translation support for sensors, not complete
This commit is contained in:
@@ -34,9 +34,7 @@ class WirelessSensor extends DeviceRelatedModel
|
||||
|
||||
public function classDescr()
|
||||
{
|
||||
return collect(collect(\LibreNMS\Device\WirelessSensor::getTypes())
|
||||
->get($this->sensor_class, []))
|
||||
->get('short', ucwords(str_replace('_', ' ', $this->sensor_class)));
|
||||
return __("wireless.$this->sensor_class.short");
|
||||
}
|
||||
|
||||
public function icon()
|
||||
|
Reference in New Issue
Block a user