Re: php documentation search - redundant results from languge versions

From: Date: Mon, 15 Jun 2009 20:43:07 +0000
Subject: Re: php documentation search - redundant results from languge versions
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5045@lists.php.net to get a copy of this message
2009/6/15 Hannes Magnusson <hannes.magnusson@gmail.com>: > 2009/6/15 Richard Quadling <rquadling@googlemail.com>: >> 2009/6/15 Hannes Magnusson <hannes.magnusson@gmail.com>: >>> 2009/6/15 Richard Quadling <rquadling@googlemail.com>: >>>> 2009/6/14 Hannes Magnusson <hannes.magnusson@gmail.com>: >>>>> On Wed, Jun 10, 2009 at 16:56, Richard Quadling<rquadling@googlemail.com> >>>>> wrote: >>>>>>> sounds like a simple workaround, but I would like to use language >>>>>>> specific options if they exists in the API >>>>>> >>>>>> ws.php already provides the language option, so it has to be something >>>>>> other than that that is the solution ... >>>>> >>>>> Which means Y! is detecting our pages in the wrong language and we >>>>> should probably try to fix that then.. >>>>> >>>>> -Hannes >>>>> >>>> >>>> The Content-Language seems to be set appropriately. I wonder if this >>>> is has always been the case? Do you know when Y! trawls the site? >>>> >>>> Does Y! get the same content that users get? That is, can I generate >>>> the same content to check for headers and the like? >>> >>> What you see is what you get, for everyone, including spiders. >>> I have no idea how often Y! crawls the site, but I assume its fairly often. >>> >>> -Hannes >>> >> >> ÙUÄ >> ;ÌT_á[m84http://help.yahoo.com/l/us/yahoo/search/siteexplorer/explore/siteexplorer-42.html >> >> It mentions a meta tag. The header has the appropriate value, but >> maybe it really does mean mean ... > > Well, adding the meta tag wouldn't hurt, and it probably should be > there, so feel free to commit. > > -Hannes > No karma for phpweb. Patch attached. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

Index: shared-manual.inc =================================================================== RCS file: /repository/phpweb/include/shared-manual.inc,v retrieving revision 1.245 diff -u -r1.245 shared-manual.inc --- shared-manual.inc 4 May 2009 13:32:19 -0000 1.245 +++ shared-manual.inc 15 Jun 2009 20:40:40 -0000 @@ -102,6 +102,9 @@ "extra_headers" => array( "Link" => "<http://php.net/" . $shorturl . ">; rel=shorturl", ), + "headtags" => array( + '<meta http-equiv="Content-language" value="' . $lang . '">', + ), )); manual_navbar(); }
« previous php.webmaster (#5045) next »