Closed (won't fix)
Project:
Locale Cookie
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2012 at 10:05 UTC
Updated:
11 Jun 2012 at 13:20 UTC
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
Comment #1
attiks commentedTrue, 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.
Comment #2
bavarian commentedsubscribe
Comment #3
attiks commentedI anybody wants to write a patch feel free to re-open.
Comment #3.0
attiks commentednew info