• Resolved odamli

    (@odamli)


    Hi

    It’s me again facing a problem ๐Ÿ™
    When I am using pro version and using the validation when trying to move to next step.
    The error messages shows like this:
    pro screenshot
    While free version shows like this:
    free screenshot

    Is there a way to edit the error messages so that I can translate “billing” part into Chinese?
    I’ve tried to edit and translate the whole language po file but it’s not working seems like it’s not taking the values simply from the language file.

    Regards
    Odam

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    The linked screenshots are set to have a limited access on Google Drive. I cannot see the screenshots.

    Which .po file did you try to translate? How did you translate it, with the PoEdit software and then compiled it to a .mo file? Or with the help of a plugin similar to Polylang?

    Thread Starter odamli

    (@odamli)

    Hi

    I changed the limitation of the linked screenshots.

    I translated the ‘wp-multi-step-checkout.pot’ file with PoEdit and yes I compiled it to a .mo file and uploaded them. Everything that I translated worked just fine like it did in free version except the error notice part shows ‘billing’ instead of translated words in pro version as I showed in above screenshots.

    Hope there is a way to add filter or action to adjust the text in error message.

    Regards

    Plugin Author SilkyPress

    (@diana_burduja)

    The error messages are under the “woocommerce” text domain. Which means that you’ll need to translate the /wp-content/plugins/woocommerce/i18n/languages/woocommerce.pot file. More specifically, the following lines:

    #. translators: %s: field name
    #: includes/class-wc-checkout.php:747
    msgctxt "checkout-validation"
    msgid "Shipping %s"
    msgstr ""
    
    #. translators: %s: field name
    #: includes/class-wc-checkout.php:751
    msgctxt "checkout-validation"
    msgid "Billing %s"
    msgstr ""
    

    The translated and compiled .po and .mo files need to go in the /wp-content/languages/plugins/ folder.

    Thread Starter odamli

    (@odamli)

    My woocommerce.pot file is already translated but it still won’t work, I think it’s under multi-step checkout pro “validate the fields during each step” function.
    When I’m not using this function, everything shows fine:
    screenshot-without-using-validate each step

    And after I activated this function it shows “billing” instead of translated words”ๅธณๅ–ฎ”:
    screenshot-using-validate each step

    So can you check that is there a additional alert message coming from the plugin while validating the fields during each step? Thank you for your time, really appreciated the support.
    BTW the website mentioned :https://www.lessmore.com.tw/

    • This reply was modified 5 years, 9 months ago by odamli.
    Plugin Author SilkyPress

    (@diana_burduja)

    Would you please check your email address for an answer to the issue?

    Thread Starter odamli

    (@odamli)

    sure
    [email protected]

    Thank you

    @diana_burduja Hi!, I am currently facing the same problem. How did you solve this problem?.

    Plugin Author SilkyPress

    (@diana_burduja)

    @alonsosandoval Would you please update the plugin to the 2.18 version? There is issue should be solved.

    If you don’t find an update notice on the “WP Admin -> Plugins” page yet, then you can generate one by clicking the “Check Again” button on the “WP Admin -> Dashboard -> Updates” page.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Customize error message’ is closed to new replies.