-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGETWO-72250: Backport of MAGETWO-55900 for Magento 2.1: [GitHub] Tr…
…anslate message… #10747
- Loading branch information
Showing
17 changed files
with
61 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ define([ | |
|
||
if (msg) { | ||
alert({ | ||
content: $.mage.__(msg) | ||
content: msg | ||
}); | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -430,10 +430,10 @@ define([ | |
var pass = $.trim(v); | ||
var result = pass.length >= passwordMinLength; | ||
if (result == false) { | ||
validator.passwordErrorMessage = $.mage.__( | ||
"Minimum length of this field must be equal or greater than %1 symbols." + | ||
" Leading and trailing spaces will be ignored." | ||
).replace('%1', passwordMinLength); | ||
/*eslint-disable max-len*/ | ||
validator.passwordErrorMessage = $.mage.__('Minimum length of this field must be equal or greater than %1 symbols. Leading and trailing spaces will be ignored.').replace('%1', passwordMinLength); | ||
|
||
/*eslint-enable max-len*/ | ||
return result; | ||
} | ||
if (pass.match(/\d+/)) { | ||
|
@@ -450,10 +450,11 @@ define([ | |
} | ||
if (counter < passwordMinCharacterSets) { | ||
result = false; | ||
validator.passwordErrorMessage = $.mage.__( | ||
"Minimum of different classes of characters in password is %1." + | ||
" Classes of characters: Lower Case, Upper Case, Digits, Special Characters." | ||
).replace('%1', passwordMinCharacterSets); | ||
|
||
/*eslint-disable max-len*/ | ||
validator.passwordErrorMessage = $.mage.__('Minimum of different classes of characters in password is %1. Classes of characters: Lower Case, Upper Case, Digits, Special Characters.').replace('%1', passwordMinCharacterSets); | ||
|
||
/*eslint-enable max-len*/ | ||
} | ||
return result; | ||
}, function () { | ||
|
@@ -741,7 +742,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": [ | ||
/** | ||
|
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