Magento 2: Validate error from review form on product page does not translate The Next CEO of Stack OverflowHow can i make address input boxes as not required on the paypal express review page?Blank 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 viewImport “Stop on Error” does not work as expected

Is it possible to make a 9x9 table fit within the default margins?

Read/write a pipe-delimited file line by line with some simple text manipulation

Does the Idaho Potato Commission associate potato skins with healthy eating?

Masking layers by a vector polygon layer in QGIS

How exploitable/balanced is this homebrew spell: Spell Permanency?

What happens if you break a law in another country outside of that country?

Prodigo = pro + ago?

Shortening a title without changing its meaning

Creating a script with console commands

Avoiding the "not like other girls" trope?

How do I secure a TV wall mount?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Man transported from Alternate World into ours by a Neutrino Detector

My boss doesn't want me to have a side project

How to implement Comparable so it is consistent with identity-equality

Is it OK to decorate a log book cover?

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

How can I separate the number from the unit in argument?

How to show a landlord what we have in savings?

Mathematica command that allows it to read my intentions

Cannot restore registry to default in Windows 10?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version

Planeswalker Ability and Death Timing

logical reads on global temp table, but not on session-level temp table



Magento 2: Validate error from review form on product page does not translate



The Next CEO of Stack OverflowHow can i make address input boxes as not required on the paypal express review page?Blank 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 viewImport “Stop on Error” does not work as expected










1















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?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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















1















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?










share|improve this question














bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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













1












1








1








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 6 '17 at 10:01









Raluca AlbuRaluca Albu

5610




5610





bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • 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











  • 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










1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer



























      0














      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






      share|improve this answer

























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 '17 at 17:23









        LezLez

        1,390730




        1,390730



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            三茅街道4182Guuntc Dn precexpngmageondP