Site icon Hip-Hop Website Design and Development

I have a plugin that applies a Google translation to my page–how does the browser know which language to display?

My site uses a plugin (Google Language Translator) to apply a Google translation of the text (see page here–the flags at the top of the page switch the language). If I change to another language, close the browser, re-open the browser, and re-open my page, the same language is displayed. How does the browser know to display in the same language as before?

Is there some variable set somewhere? Perhaps a cookie, or session ID? Or perhaps some kind of JavaScript variable? I’ve looked through the source code, but can’t see anything obvious.

I have tried contacting the plugin developer, but they have not responded :-/

The motivation for my question is because I have now used a separate plugin (WPML) to create a manual French translation of my site. But when a visitor switches between the Google translations and this manual French site, there are issues. For example, if a visitor switches to Chinese, then tries to access the French site, the page is displayed like so. On first glance, it appears that the browser continues to think a Chinese Google translation needs to be applied.