- aegeetreasurerAsked on November 12, 2013 at 04:22 PM
I am embedding JotForms in my multi language Wordpress installation.
Since there is now the option to use multiple languages in the same form (Kudos!) , I'd like to use this feature :)
Instead of showing a language picker directly in the form, I'd like to have the form's language controlled by wordpress.
I tried this using e.g. a "?lang=de" parameter in the embed code, but this did not seem to be evaluated by the form. It always defaults to English.
Is there another way to accomplish this?
- JotForm Supportardy0689Answered on November 12, 2013 at 06:41 PM
Hello, thanks for posting your inquiry here on the forum.
But I still believe this can be done using the form source code.
- aegeetreasurerAnswered on November 12, 2013 at 07:17 PM
thanks for your response. I am using this plugin for multi language support: http://wordpress.org/plugins/qtranslate/
It provides tabs for each language version of a page which can be filled separately.
http://www.qianqin.de/qtranslate/ decribes the three modes that can be used to control the language setting.
Before JotForm supported multi languages, I created a form for each language and then just embedded them in their respecitive (language specific) page in wordpress.
Now it could work the same way, the only difference is that instead of two different forms, I would just embed the same form twice but with different (lang) parameters.
Imo it would be easier and more stable to evaluate this parameter somehow instead of intermingling with the plugin's JS but I am not an expert on this ;)
- JotForm Supportardy0689Answered on November 12, 2013 at 07:44 PM
Thanks for the reply and explainging about the plugin.
It seems that you can take advantage of the URL parameter after all. I will see what I can do with the form's source code to get the URL parameter and test it on my own Wordpress. I will get back to you as soon as I have updates with the script.
- JotForm Supportardy0689Answered on November 13, 2013 at 12:55 PM
Hello,I apologize for the delayed response. I just finished making the scripts and successfully implemented the auto switcher that you can use with your qTranslate Wordpress plugin
*iframe Wordpress plugin by webvitaly
*qTranslate Wordpress plugin by Qian Qin
Download the formTranslationChanger.js here in this link. I also created an Installation.rtf file in which you can use for reference inside the ZIP archive.
Please view this video to further guide you on the installation and to show you how it works.
If you need further assistance, please do not hesitate to ask.