Mike Crittenden
Mike Crittenden

Reputation: 5917

Google Translate tool will not make translation preference persist across multiple pages

Google Translate Tools let you embed a translation dropdown in your website that lets users translate pages. However, this preference is only for that page...as soon as they click to a different page on the site, they have to re-select the language.

Any ideas on how to make this preference persistent? Is there an option for Google Translate that I'm missing (it seems like this would be an extremely common use case)? Or am I stuck using jQuery to set a cookie and then trigger a click event for the desired <option> on each page load?

Upvotes: 1

Views: 1110

Answers (3)

cregox
cregox

Reputation: 18390

From google translate support:

Translate an entire web page directly from Google Translate, simply by entering its address (e.g. "www.google.com") into the input box and clicking Translate.

It means going on http://translate.google.com/ and doing that. I believe it even gives a different translation from the Tools.

Upvotes: 0

Mike Crittenden
Mike Crittenden

Reputation: 5917

I ended up using http://translateth.is instead. It has this feature included.

Upvotes: 2

422
422

Reputation: 5770

You can use jquery to do this,

An example: http://sitehelp.com.au/jtranslate/

Upvotes: 0

Related Questions