php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13614 Search can change language
Submitted: 2001-10-09 11:18 UTC Modified: 2015-01-21 23:03 UTC
From: freek at macfreek dot nl Assigned: kalle (profile)
Status: Closed Package: Website problem
PHP Version: 4.0.6 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: freek at macfreek dot nl
New email:
PHP Version: OS:

Further comment on this bug is unnecessary.

 

 [2001-10-09 11:18 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-09 11:23 UTC] 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-12-27 19:00 UTC] 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.
 [2002-02-09 20:22 UTC] jimw@php.net
james is right. we only index the english manual pages.
 [2015-01-21 22:39 UTC] spydmobile at gmail dot com
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?
 [2015-01-21 23:03 UTC] kalle@php.net
-Assigned To: +Assigned To: kalle -Block user comment: No +Block user comment: Yes
 [2015-01-21 23:03 UTC] kalle@php.net
spydmobile at gmail dot com, please open a new bug report and post the mirror you are using instedet of replying to an old report closed 13 years ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 09:01:29 2024 UTC