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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form