Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact Form 7 with Falang multi-language site issue #89

Open
Rick-Hard89 opened this issue Mar 19, 2023 · 2 comments
Open

Contact Form 7 with Falang multi-language site issue #89

Rick-Hard89 opened this issue Mar 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Rick-Hard89
Copy link

When i set the language options to "auto" in the settings for FRC, the FRC widget in my CF7 forms on my other languages would not change to the desired languages.
All the forms were created with the same WP admin language so they all got the same lang="fi" in the code.

I managed to get it to work by changing the language of WP to Swedish and then creating a new form with CF7.
The CF7 code then changed to:

<div class="wpcf7 no-js" id="wpcf7-f3160-p355-o1" **lang="sv-SE"** dir="ltr">

and the FRC code changed to:

<div class="frc-captcha dark" data-sitekey="<my sitekey>" **data-lang="sv"** data-attached="1">

Then i changed the language of WP to English and created another form. And so on.

I use "Falang multilanguage for WordPress" and "Falang for Elementor".

Hope you can get it fixed or at least this solution can help anyone with the same issue.

@merlinfuchs
Copy link
Member

merlinfuchs commented Mar 19, 2023

Maybe it's worth adding support for the most common multi language plugins for Wordpress. I would guess they all expose some functionality to retrieve the current language in PHP.

@merlinfuchs merlinfuchs added the enhancement New feature or request label Mar 19, 2023
@Rick-Hard89
Copy link
Author

True. To me it sounds like at least having the option for FRC to retreive html lang="" would be a good idea. It could be added as an option in settings and not be enabled by default to avoid issues when people update the plugin. Another option could be to retrieve the url like "/en/" or "/de/" for example.
Just some suggestions, I'm not an expert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants