diff --git a/application/views/scripts/config/application.phtml b/application/views/scripts/config/application.phtml index c34aa8349..9a168a904 100644 --- a/application/views/scripts/config/application.phtml +++ b/application/views/scripts/config/application.phtml @@ -4,7 +4,7 @@

- + translate('General Configuration'); ?>

messageBox)): ?> 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): ?>
- : + translate('Pager') ?>: escape($contact->contact_pager) ?>
@@ -34,13 +34,13 @@
contact_notify_service_timeperiod): ?>
- : + translate('Service notification period') ?>: escape($contact->contact_notify_service_timeperiod) ?>
contact_notify_host_timeperiod): ?>
- : + translate('Host notification period') ?>: 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): ?> - %1$s', $this->escape($contact->contact_email)) ?> + translate('Email') ?> contact_pager): ?> - + translate('Pager') ?> escape($contact->contact_pager) ?> - + translate('Hosts') ?> escape($contactHelper->contactFlags($contact, 'host')) ?>
escape($contact->contact_notify_host_timeperiod) ?> - + translate('Services') ?> escape($contactHelper->contactFlags($contact, 'service')) ?>
escape($contact->contact_notify_service_timeperiod) ?>