i18n problem: Some template variables "get stuck" in one language

2008-01-10 Thread Emil
Hi folks, I have a rather peculiar problem. I created translations for my project, and mostly they work fine. Except that on a couple of pages, the language seems to get stuck on the translated language after the first time I change languages. Example: I visist the site. It's in english (which i

Re: i18n problem: Some template variables "get stuck" in one language

2008-01-10 Thread Peter Rowell
Emil: > Except that on a couple of pages, > the language seems to get stuck on the translated language after the > first time I change languages. This smells very much like a caching issue. Do you have any form of caching enabled? If so, turn it off and see if the problem is magically fixed. Yo

Re: i18n problem: Some template variables "get stuck" in one language

2008-01-11 Thread Emil
Hi Peter, thanks for the tip, I'm reading up on the vary_on_headers-decorator right now, I'm gonna see if that clears things up. Just seems weird from my reasoning, and another project I'm working on doesn't have this problem, with nearly excactly the same setup. Oh well, I'll poke around and see

Re: i18n problem: Some template variables "get stuck" in one language

2008-01-11 Thread Emil
Nope, that doesn't seem to be it - same problem with dummy caching on dev server. More likely the culprit is the Advanced Locale From URL Middleware I'm using[1]. I inspected the response headers I get, and even if the language is set to English on the site, response headers always show Content-La

Re: i18n problem: Some template variables "get stuck" in one language

2008-01-11 Thread Emil
I think I got it! Wrong ordering of middleware - I had the i18n-urls middleware before some other stuff, which screwed up a lot... It's working now, and my hair will probably grow back eventually... //emil On Jan 11, 12:41 pm, Emil <[EMAIL PROTECTED]> wrote: > Nope, that doesn't seem to be it -