Re: Language Auto Detection / www.php.net
| From: | Stig S. Bakken | Date: | Wed, 19 Mar 2003 06:24:40 +0000 |
| Subject: | Re: Language Auto Detection / www.php.net | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-95202@lists.php.net to get a copy of this message | ||
On Wed, 2003-03-12 at 11:31, James Cox wrote:
> Gabor Hojtsy <gabor@hojtsy.hu> wrote:
>
> > > is there any chance that we can revert this annoying feature?
> > > The translated documentation is always behind and partly lacks
> > > important information from the english version. I want to read
> > > the documentation in english (and I am not the only one). This
> > > is only possible if I change the url after all searches to /en/
> > > The site should at least be so intelligent to search in the
> > > /en/ part of the manual if I search from an /en/ page.
> >
> > This is fixed now, and works again the way it was before the
> > weekend (if you explicitly specify a language with being on a
> > manual page in a language, or using the search page with a language
> > parameter, that language is carried on).
> >
> > We do have language specification abilities in URL shortcuts, which
> > is the short term solution, while I (or someone else) add the
> > language cookie support. See http://php.net/urlhowto
>
> I remember adding a cookie before for something trivial (user-configurable
> css) and jimw pointing out that it tends to do silly things with caching...
> (ie, renders it useless)
There's always "Vary: Cookie", though I think the world is still lagging
in implementing it. :-(
A good way to fix the caching problem for language detection is to use
non-caching headers on pages such as /manual/ and redirect to the
language-specific page.
- Stig