diff client/src/store/map.js @ 1524:a0a16577261a

Translation: mark some strings for translation * mark the strings in map.js to be translated and update the corresponding .po files
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 07 Dec 2018 10:08:31 +0100
parents 71eb96690f91
children faa045ebdf0c
line wrap: on
line diff
--- a/client/src/store/map.js	Thu Dec 06 16:50:28 2018 +0100
+++ b/client/src/store/map.js	Fri Dec 07 10:08:31 2018 +0100
@@ -28,6 +28,7 @@
 import { getLength, getArea } from "ol/sphere.js";
 import { unByKey } from "ol/Observable";
 import { getCenter } from "ol/extent";
+import app from "../main";
 
 // initial state
 const init = () => {
@@ -411,7 +412,7 @@
       });
       lineTool.on("drawend", event => {
         commit("setCurrentMeasurement", {
-          quantity: "Length",
+          quantity: app.$gettext("Length"),
           unitSymbol: "m",
           value: Math.round(getLength(event.feature.getGeometry()) * 10) / 10
         });
@@ -432,7 +433,7 @@
       polygonTool.on("drawend", event => {
         const areaSize = getArea(event.feature.getGeometry());
         commit("setCurrentMeasurement", {
-          quantity: "Area",
+          quantity: app.$gettext("Area"),
           unitSymbol: areaSize > 100000 ? "km²" : "m²",
           value:
             areaSize > 100000