# HG changeset patch # User Thomas Junk # Date 1543850379 -3600 # Node ID a54f9fbfb37856bb4ad2ec326cda760bf924efc6 # Parent 08036d9f0c6701948dddc781d67d4e1c8a34aba7# Parent 3d5aea677345282f017c73805b44cd69be7504c2 merge diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/admin/Importqueue.vue --- a/client/src/components/admin/Importqueue.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/admin/Importqueue.vue Mon Dec 03 16:19:39 2018 +0100 @@ -134,7 +134,7 @@ this.$store.dispatch("imports/getImports").catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/admin/Systemconfiguration.vue --- a/client/src/components/admin/Systemconfiguration.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/admin/Systemconfiguration.vue Mon Dec 03 16:19:39 2018 +0100 @@ -128,7 +128,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -143,7 +143,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -162,7 +162,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -179,7 +179,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/admin/usermanagement/Userdetail.vue --- a/client/src/components/admin/usermanagement/Userdetail.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/admin/usermanagement/Userdetail.vue Mon Dec 03 16:19:39 2018 +0100 @@ -219,10 +219,10 @@ data() { return { mailsent: false, - passwordLabel: "Password", - passwordReLabel: "Repeat Password", - passwordPlaceholder: "password", - passwordRePlaceholder: "password again", + passwordLabel: this.$gettext("Password"), + passwordReLabel: this.$gettext("Repeat Password"), + passwordPlaceholder: this.$gettext("password"), + passwordRePlaceholder: this.$gettext("password again"), password: "", passwordre: "", currentUser: {}, @@ -288,7 +288,7 @@ this.submitted = false; const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -315,23 +315,29 @@ validateCountry() { this.errors.country = this.currentUser.country ? "" - : "Please choose a country"; + : this.$gettext("Please choose a country"); }, validateRole() { - this.errors.role = this.currentUser.role ? "" : "Please choose a role"; + this.errors.role = this.currentUser.role + ? "" + : this.$gettext("Please choose a role"); }, validatePassword() { this.errors.passwordre = - this.password === this.passwordre ? "" : "Passwords do not match!"; + this.password === this.passwordre + ? "" + : this.$gettext("Passwords do not match!"); this.errors.password = this.password === "" || !violatedPasswordRules(this.password) ? "" - : "Password should at least be 8 char long including 1 digit and 1 special char like $"; + : this.$gettext( + "Password should at least be 8 char long including 1 digit and 1 special char like $" + ); }, validateEmailaddress() { this.errors.email = isEmailValid(this.currentUser.email) ? "" - : "invalid email"; + : this.$gettext("invalid email"); }, validate() { this.validateCountry(); @@ -354,7 +360,7 @@ this.$store.dispatch("usermanagement/loadUsers").catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -363,7 +369,7 @@ this.submitted = false; const { status, data } = error.response; displayError({ - title: "Error while saving user", + title: this.$gettext("Error while saving user"), message: `${status}: ${data.message || data}` }); }); diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/admin/usermanagement/Usermanagement.vue --- a/client/src/components/admin/usermanagement/Usermanagement.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/admin/usermanagement/Usermanagement.vue Mon Dec 03 16:19:39 2018 +0100 @@ -263,7 +263,7 @@ this.$store.dispatch("usermanagement/loadUsers").catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -271,7 +271,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); }); @@ -297,7 +297,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data}` }); }); diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/map/Identify.vue --- a/client/src/components/map/Identify.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/map/Identify.vue Mon Dec 03 16:19:39 2018 +0100 @@ -35,22 +35,24 @@
- This app uses - gemma, - which is Free Software under -
AGPL-3.0-or-later - without warranty, see docs for details. + + This app uses + gemma, which is Free Software under +
+ %{ license } + without warranty, see docs for details. +

- source-code {{ versionStr }}
© via donau. ⓔ Intevation.
- Some data© - OpenSteetMap - contributors. + Some data © + %{ name } + contributors. +
diff -r 08036d9f0c67 -r a54f9fbfb378 client/src/components/map/contextbox/Bottlenecks.vue --- a/client/src/components/map/contextbox/Bottlenecks.vue Mon Dec 03 16:19:14 2018 +0100 +++ b/client/src/components/map/contextbox/Bottlenecks.vue Mon Dec 03 16:19:39 2018 +0100 @@ -218,7 +218,7 @@ .catch(error => { const { status, data } = error.response; displayError({ - title: "Backend Error", + title: this.$gettext("Backend Error"), message: `${status}: ${data.message || data}` }); })