changeset 4598:96283fc7de02

client: mark strings for translations(AFD,AFDLNWL)
author Fadi Abbud <fadi.abbud@intevation.de>
date Wed, 09 Oct 2019 15:33:45 +0200
parents bd2999cac246
children a63df1ac39ac
files client/src/components/fairway/AvailableFairwayDepth.vue client/src/components/fairway/AvailableFairwayDepthLNWL.vue
diffstat 2 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Wed Oct 09 15:10:35 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Wed Oct 09 15:33:45 2019 +0200
@@ -39,7 +39,7 @@
             :href="dataLink"
             :download="csvFileName"
             class="mt-2 btn btn-sm btn-info w-100"
-            >Download CSV</a
+            ><translate>Download CSV</translate></a
           >
         </div>
         <div class="btn-group-toggle w-100 mt-2">
@@ -50,7 +50,7 @@
               type="checkbox"
               v-model="showNumbers"
               autocomplete="off"
-            />Numbers
+            /><translate>Numbers</translate>
           </label>
         </div>
       </DiagramLegend>
@@ -226,7 +226,7 @@
     },
     title() {
       if (!this.frequencyD) return;
-      return `Available Fairway Depth: ${
+      return `${this.$gettext("Available Fairway Depth:")} ${
         this.featureName
       } (${filters.surveyDate(this.fromDate)} - ${filters.surveyDate(
         this.toDate
@@ -275,7 +275,9 @@
       }
     },
     downloadPDF() {
-      let title = `Available Fairway Depth: ${this.featureName}`;
+      let title = `${this.$gettext("Available Fairway Depth:")} ${
+        this.featureName
+      }`;
       this.generatePDF({
         templateData: this.templateData,
         diagramTitle: title
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed Oct 09 15:10:35 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed Oct 09 15:33:45 2019 +0200
@@ -39,7 +39,7 @@
             :href="dataLink"
             :download="csvFileName"
             class="mt-2 btn btn-sm btn-info w-100"
-            >Download CSV</a
+            ><translate>Download CSV</translate></a
           >
         </div>
         <div class="btn-group-toggle w-100 mt-2">
@@ -50,7 +50,7 @@
               type="checkbox"
               v-model="showNumbers"
               autocomplete="off"
-            />Numbers
+            /><translate>Numbers</translate>
           </label>
         </div>
       </DiagramLegend>
@@ -217,7 +217,7 @@
     },
     title() {
       if (!this.frequencyD) return;
-      return `Available Fairway Depth vs LNWL: ${
+      return `${this.$gettext("Available Fairway Depth vs LNWL:")} ${
         this.featureName
       } (${filters.surveyDate(this.fromDate)} - ${filters.surveyDate(
         this.toDate
@@ -285,7 +285,9 @@
       }
     },
     downloadPDF() {
-      let title = `Available Fairway Depth vs LNWL: ${this.featureName}`;
+      let title = `${this.$gettext("Available Fairway Depth vs LNWL:")} ${
+        this.featureName
+      }`;
       this.generatePDF({
         templateData: this.templateData,
         diagramTitle: title