I installed the module and it work all very well but when i enabled caching it sets the language of the first time a page loads and keeps that, even when you select another language.

Something i found out while debugging is that it does set another language in the cookie when you use a drupal_set_message() on that page. This is because that function calls drupal_page_is_cacheable(FALSE);. Implementing this works but then off course you can just disable the caching all together.

Comments

attiks’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs work

True, you need different caching depending on the cookie, we did this for another module (http://drupal.org/project/resp_img) where we do the caching depending on the cookie, see http://drupalcode.org/project/resp_img.git/blob/refs/heads/7.x-1.x:/cach...

For the moment I don't really have any free time to spend on this, but if you provide a patch we can merge it.

bavarian’s picture

subscribe

attiks’s picture

Status: Needs work » Closed (won't fix)

I anybody wants to write a patch feel free to re-open.

attiks’s picture

Issue summary: View changes

new info