Mercurial > gemma
diff client/src/components/map/fairway/Profiles.vue @ 1441:a4554e942954
Client: add a set of marked translations
* add a number of marked translatios in javascript part of some .vue files
* generate the corresponding .po files and translation.json file
* add some examples translations for ImportSoundingresults.vue
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 30 Nov 2018 13:09:40 +0100 |
parents | 1cd1549aab47 |
children | bb47531bdd22 |
line wrap: on
line diff
--- a/client/src/components/map/fairway/Profiles.vue Fri Nov 30 11:12:47 2018 +0100 +++ b/client/src/components/map/fairway/Profiles.vue Fri Nov 30 13:09:40 2018 +0100 @@ -334,8 +334,8 @@ }, onCopyCoordinates() { displayInfo({ - title: "Success", - message: "Coordinates copied to clipboard!" + title: this.$gettext("Success"), + message: this.$gettext("Coordinates copied to clipboard!") }); }, applyManualCoordinates() { @@ -369,9 +369,10 @@ this.$store.dispatch("fairwayprofile/cut", cut); } else { displayError({ - title: "Invalid input", - message: + title: this.$gettext("Invalid input"), + message: this.$gettext( "Please enter correct coordinates in the format: Lat,Lon,Lat,Lon" + ) }); } }, @@ -394,9 +395,10 @@ this.showLabelInput = false; displayInfo({ - title: "Profile saved!", - message: + title: this.$gettext("Profile saved!"), + message: this.$gettext( 'You can now select these coordinates from the "Saved cross profiles" menu to restore this cross profile.' + ) }); }, deleteSelectedCut() { @@ -407,7 +409,7 @@ localStorage.setItem("previousCuts", JSON.stringify(previousCuts)); this.$store.commit("fairwayprofile/selectedCut", null); this.$store.dispatch("fairwayprofile/previousCuts"); - displayInfo({ title: "Profile deleted!" }); + displayInfo({ title: this.$gettext("Profile deleted!") }); }, moveToBottleneck() { const bottleneck = this.bottlenecks.find(