• Hello,

    I have a problem with Contact Form 7. If the plugin is activated, the WooCommerce Spanish translation is canceled, and it shows some texts in English such as: Add to cart, Coupon code, Apply coupon, Update cart, Shipping…

    I have tried to change those lines with Loco, but it doesn’t work.

    When I deactivate Contact Form 7, all the translations are shown correctly.

    It is really annoying, hope someone can help me or I will be forced to change all the forms in the website…

    Kind regards,

    Sara.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • My findings and solution (below worked in my situation):

    The above although solved my translation problem but is only a temp solution. Maybe an update is needed from plugin author so that the shortcode will resume compatible with the “Search Widget Area” once again? I don’t know coding so I don’t know…

    You might want to remove any shortcodes from anywhere in your theme to find if it’ll solve issues for you.

    凌先生

    I have the same problem. Contact Form 7 removes my local translations and displays english language through my WooCommerce site. By deactivating Contact Form 7, my local translations are back on the page as it should.

    I really can’t use Contact Form 7 anymore if this doesn’t get fixed.

    Again we have faced the same problem and problem is CF7, Why you have set locale for other plugins? problem is this code on your plugin:

    	public function locale() {
    if ( wpcf7_is_valid_locale( $this->locale ) ) {
    return $this->locale;
    } else {
    return '';
    }
    }

    plugins/contact-form-7/includes/contact-form.php (return ”; to fix the problem temporary)

    • This reply was modified 4 months, 1 week ago by Codevz.
    • This reply was modified 4 months, 1 week ago by Codevz.

    @codevz

    Hi,

    Thank you for your answer.

    Can you tell us more ?

    In which file is the problematic code located?

    Can you give us more details on how to resolve the problem?

    Thank you for your help.

    Julian

    @winsa27

    Find this file: contact-form-7/includes/contact-form.php

    then find this line of code: public function locale() { … }

    just return it as empty e.g. public function locale() { return ”; }

    • This reply was modified 4 months, 1 week ago by Codevz.

    Thanks for your response, I’ll try that. ??

    zar69

    (@zar69)

    hi guys i found a solution

    Delete all the forms created. create new ones.

    it is working form with the last version of all my plugins installed

    yokai24

    (@yokai24)

    @zar69 It really worked. Thank you!

Viewing 8 replies - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.