-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-56919: [Backport] - [GitHub] Translate messages on password s…
- Loading branch information
Showing
17 changed files
with
153 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ define([ | |
} | ||
} | ||
alert({ | ||
content: $.mage.__(msg) | ||
content: msg | ||
}); | ||
return false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -669,7 +669,7 @@ define([ | |
return true; | ||
}, | ||
function() { | ||
return 'Please enter a value less than or equal to %s.'.replace('%s', this.lteToVal); | ||
return $.mage.__('Please enter a value less than or equal to %s.').replace('%s', this.lteToVal); | ||
} | ||
], | ||
"greater-than-equals-to": [ | ||
|
@@ -681,7 +681,7 @@ define([ | |
return true; | ||
}, | ||
function() { | ||
return 'Please enter a value greater than or equal to %s.'.replace('%s', this.gteToVal); | ||
return $.mage.__('Please enter a value greater than or equal to %s.').replace('%s', this.gteToVal); | ||
} | ||
], | ||
"validate-emails": [ | ||
|
@@ -697,7 +697,8 @@ define([ | |
} | ||
} | ||
return true; | ||
}, "Please enter valid email addresses, separated by commas. For example, [email protected], [email protected]." | ||
}, | ||
$.mage.__("Please enter valid email addresses, separated by commas. For example, [email protected], [email protected].") | ||
], | ||
"validate-cc-number": [ | ||
/** | ||
|
@@ -710,7 +711,8 @@ define([ | |
return validateCreditCard(value); | ||
} | ||
return false; | ||
}, $.mage.__('Please enter a valid credit card number.') | ||
}, | ||
$.mage.__('Please enter a valid credit card number.') | ||
], | ||
"validate-cc-ukss": [ | ||
/** | ||
|
@@ -720,17 +722,20 @@ define([ | |
*/ | ||
function(value) { | ||
return value; | ||
}, $.mage.__('Please enter issue number or start date for switch/solo card type.') | ||
}, | ||
$.mage.__('Please enter issue number or start date for switch/solo card type.') | ||
], | ||
'required-entry': [ | ||
function(value) { | ||
return !utils.isEmpty(value); | ||
}, $.mage.__('This is a required field.') | ||
}, | ||
$.mage.__('This is a required field.') | ||
], | ||
'checked': [ | ||
function(value) { | ||
return value; | ||
}, $.mage.__('This is a required field.') | ||
}, | ||
$.mage.__('This is a required field.') | ||
], | ||
'not-negative-amount': [ | ||
function(value) { | ||
|
Oops, something went wrong.