[icinga-checkins] icinga.org: icingaweb2/feature/redesign-7144: Add `translate()' to untranslated stringw in monitoring health overview

git at icinga.org git at icinga.org
Wed Nov 19 08:12:46 CET 2014


Module: icingaweb2
Branch: feature/redesign-7144
Commit: 4d4d19a7ef63543ee14b592205daca55ba7c853c
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=4d4d19a7ef63543ee14b592205daca55ba7c853c

Author: Alexander Fuhr <alexander.fuhr at netways.de>
Date:   Tue Nov 18 19:45:58 2014 +0100

Add `translate()' to untranslated stringw in monitoring health overview

---

 .../application/views/scripts/process/info.phtml   |   28 ++++++++++----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/modules/monitoring/application/views/scripts/process/info.phtml b/modules/monitoring/application/views/scripts/process/info.phtml
index 33f7c55..02b8eeb 100644
--- a/modules/monitoring/application/views/scripts/process/info.phtml
+++ b/modules/monitoring/application/views/scripts/process/info.phtml
@@ -70,19 +70,19 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
         <div class="box left">
             <h2><?= $this->translate('Performance Info') ?></h2>
 
-            <h3>Object summaries</h3>
+            <h3><?= $this->translate('Object summaries') ?></h3>
             <table class="avp">
                 <thead>
                 <tr>
                     <th></th>
-                    <th>overall</th>
-                    <th>scheduled</th>
+                    <th><?= $this->translate('overall') ?></th>
+                    <th><?= $this->translate('scheduled') ?></th>
                 </tr>
                 </thead>
                 <tbody>
                 <tr>
                     <td>
-                        <strong>Hosts</strong>
+                        <strong><?= $this->translate('Hosts') ?></strong>
                     </td>
                     <td>
                         <?= $rv->total_hosts; ?>
@@ -94,7 +94,7 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
 
                 <tr>
                     <td>
-                        <strong>Services</strong>
+                        <strong><?= $this->translate('Services') ?></strong>
                     </td>
                     <td>
                         <?= $rv->total_services; ?>
@@ -106,7 +106,7 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
 
                 <tr>
                     <td>
-                        <strong>Average services per host</strong>
+                        <strong><?= $this->translate('Average services per host') ?></strong>
                     </td>
                     <td>
                         <?= sprintf('%.2f', $rv->average_services_per_host); ?>
@@ -118,20 +118,20 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
                 </tbody>
             </table>
 
-            <h3>Active checks</h3>
+            <h3><?= $this->translate('Active checks') ?></h3>
             <table class="avp">
                 <thead>
                 <tr>
                     <th></th>
                     <th></th>
-                    <th>Latency</th>
-                    <th>Execution time</th>
+                    <th><?= $this->translate('Latency') ?></th>
+                    <th><?= $this->translate('Execution time') ?></th>
                 </tr>
                 </thead>
                 <tbody>
                 <tr>
                     <td>
-                        <strong>Host Checks</strong>
+                        <strong><?= $this->translate('Host Checks') ?></strong>
                     </td>
                     <td><?= $cp->host_active_count; ?></td>
                     <td><?= sprintf('%.3f', $cp->host_active_latency_avg); ?>s</td>
@@ -139,7 +139,7 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
                 </tr>
                 <tr>
                     <td>
-                        <strong>Service Checks</strong>
+                        <strong><?= $this->translate('Service Checks') ?></strong>
                     </td>
                     <td><?= $cp->service_active_count; ?></td>
                     <td><?= sprintf('%.3f', $cp->service_active_latency_avg); ?>s</td>
@@ -148,18 +148,18 @@ $cp = $this->checkPerformance()->create($this->checkperformance);
                 </tbody>
             </table>
 
-            <h3>Passive checks</h3>
+            <h3><?= $this->translate('Passive checks') ?></h3>
             <table class="avp">
                 <tbody>
                 <tr>
                     <td>
-                        <strong>Host Checks</strong>
+                        <strong><?= $this->translate('Host Checks') ?></strong>
                     </td>
                     <td><?= $cp->host_passive_count; ?></td>
                 </tr>
                 <tr>
                     <td>
-                        <strong>Service Checks</strong>
+                        <strong><?= $this->translate('Service Checks') ?></strong>
                     </td>
                     <td><?= $cp->service_passive_count; ?></td>
                 </tr>



More information about the icinga-checkins mailing list