diff --git a/contribs/gmf/apps/desktop/index.html b/contribs/gmf/apps/desktop/index.html index 1468c7a73fc5..36a9bed5d6e5 100644 --- a/contribs/gmf/apps/desktop/index.html +++ b/contribs/gmf/apps/desktop/index.html @@ -145,7 +145,7 @@

- + Draw a line on the map to display the corresponding elevation profile. Use double-click to finish the drawing. diff --git a/contribs/gmf/src/directives/authenticationdirective.js b/contribs/gmf/src/directives/authenticationdirective.js index 44e27d0d4bf3..8904bb358371 100644 --- a/contribs/gmf/src/directives/authenticationdirective.js +++ b/contribs/gmf/src/directives/authenticationdirective.js @@ -174,18 +174,17 @@ gmf.AuthenticationController.prototype.changePassword = function() { var oldPwd = this.oldPwdVal; var newPwd = this.newPwdVal; var confPwd = this.newPwdConfVal; - var cat = this.gettextCatalog; var errors = []; // (1) validation - passwords are required if (oldPwd === '') { - errors.push(cat.getString('The old password is required.')); + errors.push(this.gettextCatalog.getString('The old password is required.')); } if (newPwd === '') { - errors.push(cat.getString('The new password is required.')); + errors.push(this.gettextCatalog.getString('The new password is required.')); } if (confPwd === '') { - errors.push(cat.getString('The password confirmation is required.')); + errors.push(this.gettextCatalog.getString('The password confirmation is required.')); } if (errors.length) { @@ -193,10 +192,10 @@ gmf.AuthenticationController.prototype.changePassword = function() { } else { // (2) validation - passwords must be new and must also match if (oldPwd === newPwd) { - errors.push(cat.getString('The old and new passwords are the same.')); + errors.push(this.gettextCatalog.getString('The old and new passwords are the same.')); } if (newPwd !== confPwd) { - errors.push(cat.getString('The passwords don\'t match.')); + errors.push(this.gettextCatalog.getString('The passwords don\'t match.')); } if (errors.length) { @@ -204,7 +203,7 @@ gmf.AuthenticationController.prototype.changePassword = function() { } else { // (3) send request with current credentials, which may fail if // the old password given is incorrect. - var error = cat.getString('Incorrect old password.'); + var error = this.gettextCatalog.getString('Incorrect old password.'); this.gmfAuthentication_.changePassword(oldPwd, newPwd, confPwd).then( function() { this.changePasswordModalShown = true; @@ -221,18 +220,17 @@ gmf.AuthenticationController.prototype.changePassword = function() { * @export */ gmf.AuthenticationController.prototype.login = function() { - var cat = this.gettextCatalog; var errors = []; if (this.loginVal === '') { - errors.push(cat.getString('The username is required.')); + errors.push(this.gettextCatalog.getString('The username is required.')); } if (this.pwdVal === '') { - errors.push(cat.getString('The password is required.')); + errors.push(this.gettextCatalog.getString('The password is required.')); } if (errors.length) { this.setError_(errors); } else { - var error = cat.getString('Incorrect username or password.'); + var error = this.gettextCatalog.getString('Incorrect username or password.'); this.gmfAuthentication_.login(this.loginVal, this.pwdVal).then( this.resetError_.bind(this), this.setError_.bind(this, error)); diff --git a/src/directives/createfeature.js b/src/directives/createfeature.js index 29b421916921..490285bea216 100644 --- a/src/directives/createfeature.js +++ b/src/directives/createfeature.js @@ -146,7 +146,7 @@ ngeo.CreatefeatureController = function(gettext, $compile, $filter, $scope, helpMsg = gettext('Click to start drawing area'); contMsg = gettext( 'Click to continue drawing
' + - 'Double-click or click last starting point to finish' + 'Double-click or click starting point to finish' ); interaction = new ngeo.interaction.MeasureArea( diff --git a/src/directives/measurearea.js b/src/directives/measurearea.js index 68eaf9923961..d3f0ae24f9b7 100644 --- a/src/directives/measurearea.js +++ b/src/directives/measurearea.js @@ -30,7 +30,7 @@ ngeo.measureareaDirective = function($compile, gettext, $filter) { var helpMsg = gettext('Click to start drawing area'); var contMsg = gettext('Click to continue drawing
' + - 'Double-click or click last starting point to finish'); + 'Double-click or click starting point to finish'); var measureArea = new ngeo.interaction.MeasureArea($filter('ngeoUnitPrefix'), { style: new ol.style.Style(),