There was another thread recently on this subject – it explains how to use the language parameter and shows some examples.
Thread Starter
wuhey
(@wuhey)
Thanks for your reply Mike.
For my case, even I added the parameter in the url, it is still not working.
https://docs.google.com/forms/d/16ypHLG9VEwbdiZxIavYJWewfXbOBmyEshlYrNZz5qHw/viewform?hl=fr
If you click the above link to go to the form directly (not integrate to the WordPress platform), you will find that the language is still not be overridden by French and it still depends on what language your Google account is. However it can be done perfectly in your plug-in. Could you mind sharing us how to do that?
What you see opening the direct URL is standard behavior because Google tries to figure out who you are what your language “should” be in their opinion. Try opening your URL in an incognito window and you’ll see proper operation of the language parameter. Why Google can’t respect the URL as the overriding language when displaying a a form I don’t know but it doesn’t.
Opened with Chrome:
Opened with Chrome Icognito window:
You can see that when I open the form with a normal Chrome window Google shows me buttons in English because (a) I am logged into Chrome and (b) I am in the US. It ignores the language parameter.
When I open the form in using an Incognito window then I am not logged into Chrome and I am “anonymous” (maybe?) to Google and I see the buttons and messages in French based on the language parameter..
The plugin establishes an anonymous connection to Google using the WordPress HTTP API to retrieve the form.
Here is your form on my web site using the language parameter where you can see the buttons and messages are in French as specified with the URL parameter.
It is important to understand – the language parameter does not translate the entire form, only the standard Google messages and button text. The questions in the form itself are represented in the language the form was designed in.
Thread Starter
wuhey
(@wuhey)
Thanks for your replies and examples again.