Mercurial > gemma
changeset 2754:d0f6c222f4f9
client:correct a set of strings marking
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 21 Mar 2019 13:24:49 +0100 |
parents | 2aa1620ffd9e |
children | 2b4727a32ce6 |
files | client/src/components/Pdftool.vue client/src/components/fairway/Profiles.vue client/src/components/gauge/Gauges.vue client/src/components/identify/Identify.vue client/src/components/layers/Layers.vue client/src/components/ui/UIBoxHeader.vue |
diffstat | 6 files changed, 36 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Thu Mar 21 13:03:27 2019 +0100 +++ b/client/src/components/Pdftool.vue Thu Mar 21 13:24:49 2019 +0100 @@ -8,7 +8,7 @@ <div style="width: 18rem"> <UIBoxHeader icon="file-pdf" - title="Generate PDF" + :title="generatePdfLable" :closeCallback="close" /> <div class="box-body"> @@ -22,7 +22,7 @@ :value="template" :key="template.name" > - <translate>{{ template.name }}</translate> + {{ template.name }} </option> </select> <select @@ -169,6 +169,9 @@ ...mapState("map", ["openLayersMap", "isolinesLegendImgDataURL"]), ...mapGetters("map", ["getLayerByName"]), ...mapState("user", ["user"]), + generatePdfLable() { + return this.$gettext("Generate PDF"); + }, filename() { let date = new Date() .toISOString()
--- a/client/src/components/fairway/Profiles.vue Thu Mar 21 13:03:27 2019 +0100 +++ b/client/src/components/fairway/Profiles.vue Thu Mar 21 13:24:49 2019 +0100 @@ -6,7 +6,11 @@ ]" > <div style="width: 18rem"> - <UIBoxHeader icon="chart-area" title="Profiles" :closeCallback="close" /> + <UIBoxHeader + icon="chart-area" + :title="profilesLable" + :closeCallback="close" + /> <div class="box-body"> <transition name="fade"> <div class="loading" v-if="surveysLoading || profileLoading"> @@ -260,6 +264,9 @@ "profileLoading", "waterLevels" ]), + profilesLable() { + return this.$gettext("Profiles"); + }, selectedBottleneck: { get() { return this.$store.state.bottlenecks.selectedBottleneck;
--- a/client/src/components/gauge/Gauges.vue Thu Mar 21 13:03:27 2019 +0100 +++ b/client/src/components/gauge/Gauges.vue Thu Mar 21 13:24:49 2019 +0100 @@ -8,7 +8,7 @@ <div style="width: 18rem"> <UIBoxHeader icon="ruler-vertical" - title="Gauges" + :title="gaugesLabel" :closeCallback="close" /> <div class="box-body"> @@ -104,6 +104,9 @@ ...mapState("application", ["showGauges", "activeSplitscreenId"]), ...mapState("gauges", ["gauges"]), ...mapGetters("gauges", ["selectedGauge"]), + gaugesLabel() { + return this.$gettext("Gauges"); + }, orderedGauges() { let orderedGauges = {}; this.gauges.forEach(g => {
--- a/client/src/components/identify/Identify.vue Thu Mar 21 13:03:27 2019 +0100 +++ b/client/src/components/identify/Identify.vue Thu Mar 21 13:24:49 2019 +0100 @@ -6,7 +6,11 @@ ]" > <div style="width: 18rem"> - <UIBoxHeader icon="info" title="Identified" :closeCallback="close" /> + <UIBoxHeader + icon="info" + :title="identifiedLabel" + :closeCallback="close" + /> <div class="features"> <div v-if="currentMeasurement"> <small class="d-block bg-dark text-light text-center px-2 py-1"> @@ -136,7 +140,10 @@ ...mapGetters("application", ["versionStr"]), ...mapState("application", ["showIdentify"]), ...mapGetters("map", ["filteredIdentifiedFeatures"]), - ...mapState("map", ["currentMeasurement"]) + ...mapState("map", ["currentMeasurement"]), + identifiedLabel() { + return this.$gettext("Identified"); + } }, methods: { zoomTo(feature) {
--- a/client/src/components/layers/Layers.vue Thu Mar 21 13:03:27 2019 +0100 +++ b/client/src/components/layers/Layers.vue Thu Mar 21 13:24:49 2019 +0100 @@ -6,7 +6,11 @@ ]" > <div style="width: 18rem"> - <UIBoxHeader icon="layer-group" title="Layers" :closeCallback="close" /> + <UIBoxHeader + icon="layer-group" + :title="layersLabel" + :closeCallback="close" + /> <div class="box-body small"> <Layerselect v-for="(layer, index) in layersForLegend" @@ -44,7 +48,10 @@ }, computed: { ...mapGetters("map", ["layersForLegend"]), - ...mapState("application", ["showLayers"]) + ...mapState("application", ["showLayers"]), + layersLabel() { + return this.$gettext("Layers"); + } }, methods: { close() {