Bug #13614 [Com]: Search can change language
| From: | spydmobile at gmail dot com | Date: | Wed, 21 Jan 2015 22:39:57 +0000 |
| Subject: | Bug #13614 [Com]: Search can change language | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-20596@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=13614&edit=1
ID: 13614
Comment by: spydmobile at gmail dot com
Reported by: freek at macfreek dot nl
Summary: Search can change language
Status: Closed
Type: Bug
Package: Website problem
Operating System: N/A
PHP Version: 4.0.6
Block user comment: N
Private report: N
New Comment:
using the online manual site in english, the search bar changes language to french.
example steps to reproduce:
sitting on this page:
http://php.net/manual/en/language.oop5.cloning.php
click in the search box and type file_get_contents hit enter
you will now find yourself on this page:
http://php.net/manual/fr/function.file-get-contents.php
You are now reading french, this happens all the time, and is incredibly frustrating when developing
and having to manually edit the URL.
IMHO this is abug, the first page you should land at in a search should be the same language you are
reading the site in in the first place.
If the site is ONLY indexed in english, then why OH WHY does it switch to french on me all the time?
Previous Comments:
------------------------------------------------------------------------
[2002-02-09 20:22:34] jimw@php.net
james is right. we only index the english manual pages.
------------------------------------------------------------------------
[2001-12-27 19:00:43] imajes@php.net
This is because all search on www.php.net is in english, and does not search in a native language,
if you are in that language.
------------------------------------------------------------------------
[2001-10-09 11:23:28] freek at macfreek dot nl
Example should read: "... do a search on ..." (sorry for
the typo, I tried to correct it, but accidentally ended up
making a duplicate report).
------------------------------------------------------------------------
[2001-10-09 11:18:30] freek at macfreek dot nl
When you are on a manual webpage, and perform a search
using the form in the header of the page, you will be
directed to the page or function in the manual of the
default language of the current site. This default language
of a site may not be the same as the language the user had
chosen earlier.
Example:
At http://www.php.net/manual/nl/, do a search for php
on
'phpinfo' and you will end up at
http://www.php.net/manual/en/function.phpinfo.php
Effectively switching from Dutch (nl) to English (en)
Or, at http://nl.php.net/manual/en/, do a search for php
on
'phpinfo' and you will end up at
http://nl.php.net/manual/nl/function.phpinfo.php
Effectively switching from English to Dutch.
Possible fix: just add a 'input type=hidden name=lang 'tag
with the current language in the CommonHeader.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=13614&edit=1