hi,

thanks for sharing a great module.

Is it possible to do the following out-of-the-box?

I have a multilingual site where the language interface is seperate to the content language...i.e. I have set the translate this button to only translate what's in the #content DIV via the settings page.

A simple user journey might be as follows:

(a) french user visits the english site. I18 module auto detects their browser language and switches the language interface to French.

(b) french user is presented with a french interface with english content.

(c) french user has to click on translate this button to translate content into french.

What I would like to do is get the translate this button to autodetect the browser language in the same way...instead of using the cookie...i.e. in the new user journey step (b) french user is presented with french interface and translated content.

is that possible out of the box? or does it require a custom module?

dub

Comments

BarisW’s picture

I think this will be do-able but I don't have the time to figure it out.

Patches are welcome and will be committed.

BarisW’s picture

Version: 6.x-1.1 » 7.x-1.x-dev

Also, new features go in the D7 version first and will be back-ported later on if needed.

PatchRanger’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new1 KB

Done, please review.
Works like a charm for me.
Please note that patch is git-aware so it should be applied using git am.