Magento 2: Validate error from review form on product page does not translateHow can i make address input boxes as not required on the paypal express review page?Add Review Form To Product Page Magento 1.9Blank product review pageIndividual product review page“product-review-table” is not showing in review formReview link problem in review form on product pageProduct page Review Section from tabs to Bottom of pageReview Form is not showing on the product pageJump to review-form tab from magento product viewHow to create custom form in Magento 2.2.3
Are children a reason to be rejected for a job?
Print only the last three columns from file
Do any languages mention the top limit of a range first?
Is it double speak?
Making pause in a diagram
Who is the god Ao?
Why is Chromosome 1 called Chromosome 1?
Capacitors with a "/" on schematic
How to check a file was encrypted (really & correctly)
What is the bio-mechanical plausibility of a fox with venomous fangs?
Where in ש״ס who one find the adage, “He who suggests the idea should carry it out”?
Does the length of a password for Wi-Fi affect speed?
Does this put me at risk for identity theft?
Purchased new computer from DELL with pre-installed Ubuntu. Won't boot. Should assume its an error from DELL?
Does the United States guarantee any unique freedoms?
What city skyline is this picture of?
Decode a variable-length quantity
Getting an entry level IT position later in life
How to draw a flow chart?
What are these mathematical groups in U.S. universities?
I was contacted by a private bank overseas to get my inheritance
Does this smartphone photo show Mars just below the Sun?
Count number of occurences of particular numbers in list
"How do you solve a problem like Maria?"
Magento 2: Validate error from review form on product page does not translate
How can i make address input boxes as not required on the paypal express review page?Add Review Form To Product Page Magento 1.9Blank product review pageIndividual product review page“product-review-table” is not showing in review formReview link problem in review form on product pageProduct page Review Section from tabs to Bottom of pageReview Form is not showing on the product pageJump to review-form tab from magento product viewHow to create custom form in Magento 2.2.3
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars.
The form is located in the file form.phtml
vendor/magento/module-review/view/frontend/templates
And the validation error is shown like this
<input
type="radio"
name="ratings[<?php /* @escapeNotVerified */ echo $_rating->getId() ?>]"
id="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>"
value="<?php /* @escapeNotVerified */ echo $_option->getId() ?>"
class="radio"
data-validate="required:true, messages:required:'Please select one of each of the ratings above.'"
aria-labelledby="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_rating_label <?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>_label"
/>
I tried to change it with
data-validate="required:true, messages:required: <?php __('Please select one of each of the ratings above.') ?> "
But it's not working.
How can I translate this validation error?
magento2 localisation review input
add a comment |
The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars.
The form is located in the file form.phtml
vendor/magento/module-review/view/frontend/templates
And the validation error is shown like this
<input
type="radio"
name="ratings[<?php /* @escapeNotVerified */ echo $_rating->getId() ?>]"
id="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>"
value="<?php /* @escapeNotVerified */ echo $_option->getId() ?>"
class="radio"
data-validate="required:true, messages:required:'Please select one of each of the ratings above.'"
aria-labelledby="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_rating_label <?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>_label"
/>
I tried to change it with
data-validate="required:true, messages:required: <?php __('Please select one of each of the ratings above.') ?> "
But it's not working.
How can I translate this validation error?
magento2 localisation review input
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13
add a comment |
The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars.
The form is located in the file form.phtml
vendor/magento/module-review/view/frontend/templates
And the validation error is shown like this
<input
type="radio"
name="ratings[<?php /* @escapeNotVerified */ echo $_rating->getId() ?>]"
id="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>"
value="<?php /* @escapeNotVerified */ echo $_option->getId() ?>"
class="radio"
data-validate="required:true, messages:required:'Please select one of each of the ratings above.'"
aria-labelledby="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_rating_label <?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>_label"
/>
I tried to change it with
data-validate="required:true, messages:required: <?php __('Please select one of each of the ratings above.') ?> "
But it's not working.
How can I translate this validation error?
magento2 localisation review input
The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars.
The form is located in the file form.phtml
vendor/magento/module-review/view/frontend/templates
And the validation error is shown like this
<input
type="radio"
name="ratings[<?php /* @escapeNotVerified */ echo $_rating->getId() ?>]"
id="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>"
value="<?php /* @escapeNotVerified */ echo $_option->getId() ?>"
class="radio"
data-validate="required:true, messages:required:'Please select one of each of the ratings above.'"
aria-labelledby="<?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_rating_label <?php echo $block->escapeHtml($_rating->getRatingCode()) ?>_<?php /* @escapeNotVerified */ echo $_option->getValue() ?>_label"
/>
I tried to change it with
data-validate="required:true, messages:required: <?php __('Please select one of each of the ratings above.') ?> "
But it's not working.
How can I translate this validation error?
magento2 localisation review input
magento2 localisation review input
asked Nov 6 '17 at 10:01
Raluca AlbuRaluca Albu
611 silver badge11 bronze badges
611 silver badge11 bronze badges
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13
add a comment |
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13
add a comment |
1 Answer
1
active
oldest
votes
This is currently a default Magento 2.2 bug.
It should be fixed in the next release (Magento v 2.2.2).
As a temporary solution you could try creating your own validation class as suggested here: https://github.com/magento/magento2/issues/10474
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f200186%2fmagento-2-validate-error-from-review-form-on-product-page-does-not-translate%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is currently a default Magento 2.2 bug.
It should be fixed in the next release (Magento v 2.2.2).
As a temporary solution you could try creating your own validation class as suggested here: https://github.com/magento/magento2/issues/10474
add a comment |
This is currently a default Magento 2.2 bug.
It should be fixed in the next release (Magento v 2.2.2).
As a temporary solution you could try creating your own validation class as suggested here: https://github.com/magento/magento2/issues/10474
add a comment |
This is currently a default Magento 2.2 bug.
It should be fixed in the next release (Magento v 2.2.2).
As a temporary solution you could try creating your own validation class as suggested here: https://github.com/magento/magento2/issues/10474
This is currently a default Magento 2.2 bug.
It should be fixed in the next release (Magento v 2.2.2).
As a temporary solution you could try creating your own validation class as suggested here: https://github.com/magento/magento2/issues/10474
answered Nov 20 '17 at 17:23
LezLez
1,6108 silver badges32 bronze badges
1,6108 silver badges32 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f200186%2fmagento-2-validate-error-from-review-form-on-product-page-does-not-translate%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Make sure, there is an entry in your translation csv file for your text ''Please select one of each of the ratings above.'
– MGento
Nov 6 '17 at 10:42
It's there, but it doesn't translate.
– Raluca Albu
Nov 6 '17 at 12:13