Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Do you realize that the locale setting of the contact form is en_US (US English)? Is it your intention? Seemingly the content is in Spanish though.

    Thread Starter salimbasar

    (@salimbasar)

    So I understand that we need to add translation for CF7 Also. I thought that changing language of the site and adding translated words to Contact form settings.

    BY the way how to change local setting of CF7? Changing user language?

    IN this page below i used a local custom form not translated to english .https://www.estambulturismo.com/tour/estambul-y-efeso-6-dias/

    BY the way one of our friend found the solution by adding en empty en_US.mo file

    https://www.estambulturismo.com/tour/estambul-y-capadocia/

    Now this page translations is working.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I’m facing the same issue, I did some digging in code and what I found is that the issue is caused by the function wpcf7_switch_locale

    I have my site language in pl_PL, all plugins are translated, theme is translated, CF7 has also polish localization. Now in that function if I check the $previous_locale it’s set to pl_PL, but the $locale is set to en_US (and I don’t know why) and available_locales shows what translations exist for CF7 as it shows me array of languages I checked array(4) { [0]=> string(5) “en_US” [1]=> string(5) “de_DE” [2]=> string(5) “en_AU” [3]=> string(5) “pl_PL” }

    The result is that I have everything on site in PL, until the contact form widget comes up, everything in sidebar after that widget is back in English

    if you set $do_switch_locale to false it works correctly, shows all widgets in PL, contact form in PL, and any widget after the contact form is also in PL.

    any idea what’s the issu ehere?

    Ok, I realized now something, each form created in Contact Form has locale setting. So if I had forms created before when the site was in English it will switch it to English. It works for the newly created form, if I create now form when the site language is set to polish, and display that form, everything is how it supposed to be.

    I don’t see how that makes any sense and how is that useful to unload the textdomain and break other widgets

    • This reply was modified 1 year, 8 months ago by rzepak.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Contact Form / is blocking translations after the code.’ is closed to new replies.