]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Add missing i18n attributes
authorVolker Theile <vtheile@suse.com>
Wed, 21 Feb 2018 13:52:31 +0000 (14:52 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:13 +0000 (13:07 +0000)
Signed-off-by: Volker Theile <vtheile@suse.com>
14 files changed:
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/block/iscsi/iscsi.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/block/pool-detail/pool-detail.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cephfs/cephfs/cephfs.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cephfs/clients/clients.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/hosts/hosts.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/cluster/monitor/monitor.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/dashboard/dashboard/dashboard.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/rgw/rgw-daemon-details/rgw-daemon-details.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/logout/logout.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/core/not-found/not-found.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/shared/components/view-cache/view-cache.component.html
src/pybind/mgr/dashboard_v2/frontend/src/index.html

index e4b285b091cfbac3dceaed11163e56b238daff37..41749bfc4b5166cd1b6658dfbb4c6cf0e171f5d1 100644 (file)
@@ -1,16 +1,18 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Block</li>
-    <li class="breadcrumb-item active" aria-current="page">iSCSI</li>
+    <li i18n
+        class="breadcrumb-item">Block</li>
+    <li i18n
+        class="breadcrumb-item active" aria-current="page">iSCSI</li>
   </ol>
 </nav>
 
-<legend>Daemons</legend>
+<legend i18n>Daemons</legend>
 <cd-table [data]="daemons"
           [columns]="daemonsColumns">
 </cd-table>
 
-<legend>Images</legend>
+<legend i18n>Images</legend>
 <cd-table [data]="images"
           [columns]="imagesColumns">
 </cd-table>
index 09207242bc7c0d5fd57a77bbe56d769f7cbca791..aa2a969ebe47e140ca45f7fd5de1d078a5de49d8 100644 (file)
@@ -1,7 +1,9 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Block</li>
-    <li class="breadcrumb-item">Pools</li>
+    <li i18n
+        class="breadcrumb-item">Block</li>
+    <li i18n
+        class="breadcrumb-item">Pools</li>
     <li class="breadcrumb-item active"
         aria-current="page">{{ name }}</li>
   </ol>
index ee30250ba344e4449ff58744a4f3ec55554422e4..4e9a683ccce27eb05eb048cc1fd9bf6720c8fd13 100644 (file)
@@ -1,6 +1,7 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Filesystem</li>
+    <li i18n
+        class="breadcrumb-item">Filesystem</li>
     <li class="breadcrumb-item active"
         aria-current="page">{{ name }}</li>
   </ol>
@@ -9,7 +10,8 @@
 <div class="row">
   <div class="col-md-12">
     <i class="fa fa-desktop"></i>
-    <a [routerLink]="['/cephfs/' + id + '/clients']">
+    <a i18n
+       [routerLink]="['/cephfs/' + id + '/clients']">
       <span style="font-weight:bold;">{{ clientCount }}</span>
       Clients
     </a>
@@ -19,7 +21,7 @@
 <div class="row">
   <div class="col-sm-6">
     <fieldset>
-      <legend>Ranks</legend>
+      <legend i18n>Ranks</legend>
 
       <cd-table [data]="ranks.data"
                 [columns]="ranks.columns"
@@ -33,7 +35,7 @@
 
   <div class="col-sm-6">
     <fieldset>
-      <legend>Pools</legend>
+      <legend i18n>Pools</legend>
 
       <cd-table [data]="pools.data"
                 [columns]="pools.columns"
index 3a57eb7f2dc24b4a0f4e0f96424faaa05944fe94..606547920d253c9d30d1607d2378009f90c3fc99 100644 (file)
@@ -1,10 +1,12 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Filesystem</li>
+    <li i18n
+        class="breadcrumb-item">Filesystem</li>
     <li class="breadcrumb-item">
       <a [routerLink]="['/cephfs/' + id]">{{ name }}</a>
     </li>
-    <li class="breadcrumb-item active"
+    <li i18n
+        class="breadcrumb-item active"
         aria-current="page">
       Clients
     </li>
index fab2c33e908b396eb07e922487a239a02f54a9b4..0e5735c1cb76320a22be2f07548bd1945b6a54ef 100644 (file)
@@ -1,7 +1,9 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Cluster</li>
-    <li class="breadcrumb-item active">Hosts</li>
+    <li i18n
+        class="breadcrumb-item">Cluster</li>
+    <li i18n
+        class="breadcrumb-item active">Hosts</li>
   </ol>
 </nav>
 <cd-table [data]="hosts"
index 5c8f0fcc3998e9a86431616029632d30cb20e167..2dd506f3c4ab809dbcbaabae6d5716d5fedbf260 100644 (file)
@@ -1,61 +1,70 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Cluster</li>
-    <li class="breadcrumb-item active">Monitors</li>
+    <li i18n
+        class="breadcrumb-item">Cluster</li>
+    <li i18n
+        class="breadcrumb-item active">Monitors</li>
   </ol>
 </nav>
 
 <div class="row">
   <div class="col-md-4">
     <fieldset>
-      <legend>Status</legend>
+      <legend i18n>Status</legend>
       <table class="table table-striped"
              *ngIf="mon_status">
         <tr>
           <td>
-            <span class="name">Cluster ID: </span>
+            <span i18n
+                  class="name">Cluster ID: </span>
           </td>
           <td>{{ mon_status.monmap.fsid }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">monmap modified: </span>
+            <span i18n
+                  class="name">monmap modified: </span>
           </td>
           <td> {{ mon_status.monmap.modified }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">monmap epoch: </span>
+            <span i18n
+                  class="name">monmap epoch: </span>
           </td>
           <td> {{ mon_status.monmap.epoch }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">quorum con: </span>
+            <span i18n
+                  class="name">quorum con: </span>
           </td>
           <td> {{ mon_status.features.quorum_con }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">quorum mon: </span>
+            <span i18n
+                  class="name">quorum mon: </span>
           </td>
           <td> {{ mon_status.features.quorum_mon }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">required con: </span>
+            <span i18n
+                  class="name">required con: </span>
           </td>
           <td> {{ mon_status.features.required_con }}
           </td>
         </tr>
         <tr>
           <td>
-            <span class="name">required mon: </span>
+            <span i18n
+                  class="name">required mon: </span>
           </td>
           <td> {{ mon_status.features.required_mon }}
           </td>
 
   <div class="col-md-8">
     <fieldset>
-      <legend class="in-quorum">In Quorum</legend>
+      <legend i18n
+              class="in-quorum">In Quorum</legend>
       <cd-table [data]="inQuorum.data"
                 [columns]="inQuorum.columns">
       </cd-table>
 
-      <legend class="in-quorum">Not In Quorum</legend>
+      <legend i18n
+              class="in-quorum">Not In Quorum</legend>
       <cd-table [data]="notInQuorum.data"
                 [columns]="notInQuorum.columns">
       </cd-table>
index 10b37138abb4f3c8f3151c55208ba9d47f2f25b8..89a37fd6c0eb27e1f885fdd771df13f95cedb9cf 100644 (file)
@@ -1,9 +1,11 @@
 <div>
   <tabset *ngIf="hasGrafana">
-    <tab heading="Health">
+    <tab i18n-heading
+         heading="Health">
       <cd-health></cd-health>
     </tab>
-    <tab heading="Statistics">
+    <tab i18n-heading
+         heading="Statistics">
     </tab>
   </tabset>
   <cd-health *ngIf="!hasGrafana"></cd-health>
index 98b7d7b3484c9c6ff02973f750aa537cb0bf82e3..ebb9ba93d62fdd48380d2a0fd14540c15b97d394 100644 (file)
@@ -1,5 +1,5 @@
 <fieldset>
-  <legend>Performance Counters</legend>
+  <legend i18n>Performance Counters</legend>
   <h3>{{ serviceType }}.{{ serviceId }}</h3>
   <cd-table-performance-counter [serviceType]="serviceType"
                                 [serviceId]="serviceId">
index de2295a970948c9d313bd22fe44b156c47b4f58e..73ffbb7ebb8fb0c834aff9cba7720d2d5ad63371 100644 (file)
@@ -1,10 +1,12 @@
 <tabset>
-  <tab heading="Details">
+  <tab i18n-heading
+       heading="Details">
     <cd-table-key-value [data]="metadata"
                         (fetchData)="getMetaData()">
     </cd-table-key-value>
   </tab>
-  <tab heading="Performance Counters">
+  <tab i18n-heading
+       heading="Performance Counters">
     <cd-table-performance-counter serviceType="rgw"
                                   [serviceId]="serviceId">
     </cd-table-performance-counter>
index 22fe789373d0e351604fa9f04ed06e3ff60b7e0c..55bbca913f1d2cb1aedf0623462377cb7a21749e 100644 (file)
@@ -1,6 +1,7 @@
 <nav aria-label="breadcrumb">
   <ol class="breadcrumb">
-    <li class="breadcrumb-item">Object Gateway</li>
+    <li i18n
+        class="breadcrumb-item">Object Gateway</li>
   </ol>
 </nav>
 <cd-table [data]="daemons"
index 21b9881fd2d947ed0a98866238e523bcd819e6c7..993fd95ebb1aa385dc3ee226392797b1b7d5463a 100644 (file)
@@ -1,4 +1,6 @@
-<a title="Sign Out"
+<a i18n-title
+   title="Sign Out"
    (click)="logout()">
-  <i class="fa fa-sign-out"></i> Logout
+  <i class="fa fa-sign-out"></i>
+  <ng-container i18n>Logout</ng-container>
 </a>
index 5ba41d229c353b17ac545753a538492ac40e328f..0f3847b939345cea344262809a1bb95d44a81abb 100644 (file)
@@ -1,6 +1,6 @@
 <div class="row">
   <div class="col-md-12 text-center">
-    <h1>Sorry, we could not find what you were looking for</h1>
+    <h1 i18n>Sorry, we could not find what you were looking for</h1>
 
     <img class="img-responsive center-block img-rounded"
          src="/assets/1280px-Mimic_Octopus2.jpg">
index eb30c0099f8827cfda722358f13336c097a53d13..1d71da24c1ab33e28bbf311280f763e5a4e7d83d 100644 (file)
@@ -1,14 +1,17 @@
-<alert type="info"
+<alert i18n
+       type="info"
        *ngIf="status === vcs.ValueNone">
   Retrieving data, please wait.
 </alert>
 
-<alert type="warning"
+<alert i18n
+       type="warning"
        *ngIf="status === vcs.ValueStale">
   Displaying previously cached data.
 </alert>
 
-<alert type="danger"
+<alert i18n
+       type="danger"
        *ngIf="status === vcs.ValueException">
   Could not load data. Please check the cluster health.
 </alert>
index c9a52bf2577ceb588cfb59f49eca0d0914e00280..36dcf4def26a532125273e0cb25be5c22776938f 100644 (file)
@@ -13,9 +13,9 @@
     <div class="noscript container"
          ng-if="false">
       <div class="jumbotron alert alert-danger">
-        <h2>JavaScript required!</h2>
-        <p>A browser with JavaScript enabled is required in order to use this service.</p>
-        <p>When using Internet Explorer, please check your security settings and add this address to your trusted sites.</p>
+        <h2 i18n>JavaScript required!</h2>
+        <p i18n>A browser with JavaScript enabled is required in order to use this service.</p>
+        <p i18n>When using Internet Explorer, please check your security settings and add this address to your trusted sites.</p>
       </div>
     </div>
   </noscript>