diff --git a/application/controllers/ConfigController.php b/application/controllers/ConfigController.php
index 559d8f3f9..c12860e72 100644
--- a/application/controllers/ConfigController.php
+++ b/application/controllers/ConfigController.php
@@ -96,7 +96,7 @@ class ConfigController extends ActionController
try {
$manager->enableModule($module);
$manager->loadModule($module);
- Notification::success('Module "' . $module . '" enabled');
+ Notification::success(sprintf($this->translate('Module "%s" enabled'), $module));
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
} catch (Exception $e) {
$this->view->exceptionMesssage = $e->getMessage();
@@ -115,7 +115,7 @@ class ConfigController extends ActionController
$manager = Icinga::app()->getModuleManager();
try {
$manager->disableModule($module);
- Notification::success('Module "' . $module . '" disabled');
+ Notification::success(sprintf($this->translate('Module "%s" disabled'), $module));
$this->rerenderLayout()->reloadCss()->redirectNow('config/modules');
} catch (Exception $e) {
$this->view->exceptionMessage = $e->getMessage();
diff --git a/application/views/scripts/config/modules.phtml b/application/views/scripts/config/modules.phtml
index 086d0a61a..e0204b24f 100644
--- a/application/views/scripts/config/modules.phtml
+++ b/application/views/scripts/config/modules.phtml
@@ -1,6 +1,6 @@
enabled): ?>
- = $this->icon('success.png', 'Module is enabled') ?>
+ = $this->icon('success.png', $this->translate('Module is enabled')) ?>
- = $this->icon('remove.png', 'Module is disabled') ?>
+ = $this->icon('remove.png', $this->translate('Module is disabled')) ?>
endif ?>
-
+
= $hostSummary->hosts_up ?>
-
+
= $hostSummary->hosts_down_unhandled ?>
/
-
+
= $hostSummary->hosts_down_handled ?>
-
+
= $hostSummary->hosts_unreachable_unhandled ?>
/
-
+
= $hostSummary->hosts_unreachable_handled ?>
-
+
= $hostSummary->hosts_pending ?>
@@ -29,36 +29,36 @@
@@ -70,8 +70,8 @@ if (count($hostgroups) === 0) {
'host_unhandled' => 1,
'hostgroup' => $h->hostgroup
)
- ); ?>" title="Hosts UNREACHABLE Unhandled">
- = $h->hosts_unreachable_unhandled; ?> UNREACHABLE
+ ); ?>" title="= $this->translate('Hosts UNREACHABLE Unhandled') ?>">
+ = $h->hosts_unreachable_unhandled; ?> = $this->translate('UNREACHABLE', 'icinga.state') ?>
hosts_unreachable_handled): ?>
@@ -82,8 +82,8 @@ if (count($hostgroups) === 0) {
'host_handled' => 1,
'hostgroup' => $h->hostgroup
)
- ); ?>" title="Hosts UNREACHABLE Handled">
- = $h->hosts_unreachable_handled . ' ' . ($h->hosts_unreachable_unhandled ? $this->translate('Acknowledged') : 'UNREACHABLE'); ?>
+ ); ?>" title="= $this->translate('Hosts UNREACHABLE Handled') ?>">
+ = $h->hosts_unreachable_handled . ' ' . ($h->hosts_unreachable_unhandled ? $this->translate('Acknowledged') : $this->translate('UNREACHABLE', 'icinga.state')) ?>
@@ -98,8 +98,8 @@ if (count($hostgroups) === 0) {
'host_state' => 0,
'hostgroup' => $h->hostgroup
)
- ); ?>" title="Hosts UP">
- = $h->hosts_up; ?> UP
+ ); ?>" title="= $this->translate('Hosts UP') ?>">
+ = $h->hosts_up; ?> = $this->translate('UP', 'icinga.state') ?>
@@ -113,8 +113,8 @@ if (count($hostgroups) === 0) {
'host_state' => 99,
'hostgroup' => $h->hostgroup
)
- ); ?>" title="Hosts PENDING">
- = $h->hosts_pending; ?> PENDING
+ ); ?>" title="= $this->translate('Hosts PENDING') ?>">
+ = $h->hosts_pending; ?> = $this->translate('PENDING', 'icinga.state') ?>
@@ -135,8 +135,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services CRITICAL Unhandled">
- = $h->services_critical_unhandled; ?> CRITICAL
+ ); ?>" title="= $this->translate('Services CRITICAL Unhandled') ?>">
+ = $h->services_critical_unhandled; ?> = $this->translate('CRITICAL', 'icinga.state') ?>
services_critical_handled): ?>
@@ -148,8 +148,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services CRITICAL Handled">
- = $h->services_critical_handled . ' ' . ($h->services_critical_unhandled ? $this->translate('Acknowledged') : 'CRITICAL'); ?>
+ ); ?>" title="= $this->translate('Services CRITICAL Handled') ?>">
+ = $h->services_critical_handled . ' ' . ($h->services_critical_unhandled ? $this->translate('Acknowledged') : $this->translate('CRITICAL', 'icinga.state')); ?>
@@ -169,8 +169,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services WARNING Unhandled">
- = $h->services_warning_unhandled; ?> WARNING
+ ); ?>" title="= $this->translate('Services WARNING Unhandled') ?>">
+ = $h->services_warning_unhandled; ?> = $this->translate('WARNING', 'icinga.state') ?>
services_warning_handled): ?>
@@ -182,8 +182,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services WARNING Handled">
- = $h->services_warning_handled . ' ' . ($h->services_warning_unhandled ? $this->translate('Acknowledged') : 'WARNING'); ?>
+ ); ?>" title="= $this->translate('Services WARNING Handled') ?>">
+ = $h->services_warning_handled . ' ' . ($h->services_warning_unhandled ? $this->translate('Acknowledged') : $this->translate('WARNING', 'icinga.state')); ?>
@@ -203,8 +203,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services UNKNOWN Unhandled">
- = $h->services_unknown_unhandled; ?> UNKNOWN
+ ); ?>" title="= $this->translate('Services UNKNOWN Unhandled') ?>">
+ = $h->services_unknown_unhandled; ?> = $this->translate('UNKNOWN', 'icinga.state') ?>
services_unknown_handled): ?>
@@ -216,8 +216,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services UNKNOWN Handled">
- = $h->services_unknown_handled . ' ' . ($h->services_unknown_unhandled ? $this->translate('Acknowledged') : 'UNKNOWN'); ?>
+ ); ?>" title="= $this->translate('Services UNKNOWN Handled') ?>">
+ = $h->services_unknown_handled . ' ' . ($h->services_unknown_unhandled ? $this->translate('Acknowledged') : $this->translate('UNKNOWN', 'icinga.state')); ?>
@@ -233,8 +233,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services OK">
- = $h->services_ok; ?> OK
+ ); ?>" title="= $this->translate('Services OK') ?>">
+ = $h->services_ok; ?> = $this->translate('OK', 'icinga.state') ?>
@@ -249,8 +249,8 @@ if (count($hostgroups) === 0) {
'hostgroup' => $h->hostgroup,
'sort' => 'service_severity'
)
- ); ?>" title="Services PENDING">
- = $h->services_pending; ?> PENDING
+ ); ?>" title="= $this->translate('Services PENDING') ?>">
+ = $h->services_pending; ?> = $this->translate('PENDING', 'icinga.state') ?>
diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml
index 5cad9142e..5be77f89f 100644
--- a/modules/monitoring/application/views/scripts/list/hosts.phtml
+++ b/modules/monitoring/application/views/scripts/list/hosts.phtml
@@ -47,35 +47,35 @@ if ($hosts->count() === 0) {
$icons = array();
if (! $host->host_handled && $host->host_state > 0){
- $icons[] = $this->icon('unhandled.png', 'Unhandled');
+ $icons[] = $this->icon('unhandled.png', $this->translate('Unhandled'));
}
if ($host->host_acknowledged) {
- $icons[] = $this->icon('acknowledgement.png', 'Acknowledged');
+ $icons[] = $this->icon('acknowledgement.png', $this->translate('Acknowledged'));
}
if ($host->host_is_flapping) {
- $icons[] = $this->icon('flapping.png', 'Flapping');
+ $icons[] = $this->icon('flapping.png', $this->translate('Flapping'));
}
if (! $host->host_notifications_enabled) {
- $icons[] = $this->icon('notification_disabled.png', 'Notifications Disabled');
+ $icons[] = $this->icon('notification_disabled.png', $this->translate('Notifications Disabled'));
}
if ($host->host_in_downtime) {
- $icons[] = $this->icon('in_downtime.png', 'In Downtime');
+ $icons[] = $this->icon('in_downtime.png', $this->translate('In Downtime'));
}
if (! $host->host_active_checks_enabled) {
if (! $host->host_passive_checks_enabled) {
- $icons[] = $this->icon('active_passive_checks_disabled.png', 'Active And Passive Checks Disabled');
+ $icons[] = $this->icon('active_passive_checks_disabled.png', $this->translate('Active And Passive Checks Disabled'));
} else {
- $icons[] = $this->icon('active_checks_disabled.png', 'Active Checks Disabled');
+ $icons[] = $this->icon('active_checks_disabled.png', $this->translate('Active Checks Disabled'));
}
}
if (isset($host->host_last_comment) && $host->host_last_comment !== null) {
- $icons[] = $this->icon('comment.png', 'Comment: ' . $host->host_last_comment);
+ $icons[] = $this->icon('comment.png', $this->translate('Comment: ') . $host->host_last_comment);
}
?>
|