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;








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
























  • 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
























  • 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

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

















  • 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,6108 silver badges32 bronze badges




        1,6108 silver badges32 bronze badges






























            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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?