Re: php documentation search - redundant results from languge versions

From: Date: Mon, 15 Jun 2009 16:04:22 +0000
Subject: Re: php documentation search - redundant results from languge versions
References: 1 2 3 4 5 6 7 8 9  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5042@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/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 > http://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 ... <meta http-equiv="Content-Language" content="en"> Don't believe it myself. 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 16:02:07 -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(); } would be enough to add the language <meta> tag to the manual pages. Not sure how long it would take Y! to crawl the sites. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"

« previous php.webmaster (#5042) next »