Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
* Room added to Leak/Smoke sensor notifications
  • Loading branch information
sergejey committed Aug 27, 2019
1 parent 250395a commit fdc716a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions languages/default.php
Expand Up @@ -1386,6 +1386,7 @@
'NONE' => 'None',
'PREVIOUS' => 'Prev',
'NEXT' => 'Next',
'LOCATED_IN_ROOM' => 'located in',

'TEST' => 'test'

Expand Down
2 changes: 2 additions & 0 deletions languages/ru.php
Expand Up @@ -1383,6 +1383,8 @@
'PREVIOUS' => 'Пред.',
'NEXT' => 'След.',

'LOCATED_IN_ROOM' => 'расположеный в комнате',

/* end module names */


Expand Down
5 changes: 5 additions & 0 deletions modules/devices/SLeak_alert.php
Expand Up @@ -8,6 +8,11 @@
$description = $ot;
}

$location_title=$this->getProperty('location_title');
if ($location_title) {
$description.=' '.LANG_LOCATED_IN_ROOM.' '.$location_title;
}

say(LANG_DEVICES_SENSOR_ALERT.': '.$description,100);
clearTimeOut($alert_timer_title);
if ($this->getProperty('notify_eliminated')) {
Expand Down
5 changes: 5 additions & 0 deletions modules/devices/SSmoke_alert.php
Expand Up @@ -7,6 +7,11 @@
$description = $ot;
}

$location_title=$this->getProperty('location_title');
if ($location_title) {
$description.=' '.LANG_LOCATED_IN_ROOM.' '.$location_title;
}

$alert_timer_title = $ot.'_alert';

say(LANG_DEVICES_SENSOR_ALERT.': '.$description,100);
Expand Down

0 comments on commit fdc716a

Please sign in to comment.