- = t('Generic Configuration'); ?> + = $this->translate('General Configuration'); ?>
messageBox)): ?> = $this->messageBox->render() ?> diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index 4623a5027..c17d997f1 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -9,7 +9,7 @@
translate('No contacts matching the filter');
return;
}
foreach ($contacts as $contact): ?>
@@ -26,7 +26,7 @@
) ?>
contact_pager): ?>
- = mt('monitoring', 'Pager') ?>:
+ = $this->translate('Pager') ?>:
= $this->escape($contact->contact_pager) ?>
@@ -34,13 +34,13 @@
contact_notify_service_timeperiod): ?>
- = mt('monitoring', 'Email') ?>
= sprintf('%1$s', $this->escape($contact->contact_email)) ?>
+ = $this->translate('Email') ?>
contact_pager): ?>
- = mt('monitoring', 'Pager') ?>
+ = $this->translate('Pager') ?>
= $this->escape($contact->contact_pager) ?>
- = mt('monitoring', 'Hosts') ?>
+ = $this->translate('Hosts') ?>
= $this->escape($contactHelper->contactFlags($contact, 'host')) ?>
= $this->escape($contact->contact_notify_host_timeperiod) ?>
- = mt('monitoring', 'Services') ?>
+ = $this->translate('Services') ?>
= $this->escape($contactHelper->contactFlags($contact, 'service')) ?>
= $this->escape($contact->contact_notify_service_timeperiod) ?>
- = mt('monitoring', 'Service notification period') ?>:
+ = $this->translate('Service notification period') ?>:
= $this->escape($contact->contact_notify_service_timeperiod) ?>
contact_notify_host_timeperiod): ?>
- = mt('monitoring', 'Host notification period') ?>:
+ = $this->translate('Host notification period') ?>:
= $this->escape($contact->contact_notify_host_timeperiod) ?>
diff --git a/modules/monitoring/application/views/scripts/list/eventgrid.phtml b/modules/monitoring/application/views/scripts/list/eventgrid.phtml
index 53056daac..1af75caf9 100644
--- a/modules/monitoring/application/views/scripts/list/eventgrid.phtml
+++ b/modules/monitoring/application/views/scripts/list/eventgrid.phtml
@@ -18,39 +18,39 @@ use Icinga\Web\Widget\Chart\HistoryColorGrid;
$settings = array(
'cnt_up' => array(
- 'tooltip' => mt('monitoring', '%d ok on %s'),
+ 'tooltip' => $this->translate('%d hosts ok on %s'),
'color' => '#49DF96',
'opacity' => '0.55'
),
'cnt_unreachable_hard' => array(
- 'tooltip' => mt('monitoring', '%d unreachable on %s'),
+ 'tooltip' => $this->translate('%d hosts unreachable on %s'),
'color' => '#77AAFF',
'opacity' => '0.55'
),
'cnt_critical_hard' => array(
- 'tooltip' => mt('monitoring', '%d critical on %s'),
+ 'tooltip' => $this->translate('%d services critical on %s'),
'color' => '#ff5566',
'opacity' => '0.9'
),
'cnt_warning_hard' => array(
- 'tooltip' => mt('monitoring', '%d warning on %s'),
+ 'tooltip' => $this->translate('%d services warning on %s'),
'color' => '#ffaa44',
'opacity' => '1.0'
),
'cnt_down_hard' => array(
- 'tooltip' => mt('monitoring', '%d down on %s'),
+ 'tooltip' => $this->translate('%d hosts down on %s'),
'color' => '#ff5566',
'opacity' => '0.9'
),
'cnt_unknown_hard' => array(
- 'tooltip' => mt('monitoring', '%d unknown on %s'),
+ 'tooltip' => $this->translate('%d services unknown on %s'),
'color' => '#cc77ff',
'opacity' => '0.7'
),
'cnt_ok' => array(
- 'tooltip' => mt('monitoring', '%d ok on %s'),
+ 'tooltip' => $this->translate('%d services ok on %s'),
'color' => '#49DF96',
'opacity' => '0.55'
)
@@ -66,7 +66,7 @@ if ($to - $from > 315360000) {
$data = array();
if (count($summary) === 0) {
- echo mt('monitoring', 'No state changes in the selected time period.');
+ echo $this->translate('No state changes in the selected time period.');
}
foreach ($summary as $entry) {
$day = $entry->day;
diff --git a/modules/monitoring/application/views/scripts/show/contact.phtml b/modules/monitoring/application/views/scripts/show/contact.phtml
index 92b84dc73..0ccd0f5ec 100644
--- a/modules/monitoring/application/views/scripts/show/contact.phtml
+++ b/modules/monitoring/application/views/scripts/show/contact.phtml
@@ -19,23 +19,23 @@
contact_email): ?>
= $this->escape($contact->contact_notify_host_timeperiod) ?>
= $this->escape($contact->contact_notify_service_timeperiod) ?>