Edit report at https://bugs.php.net/bug.php?id=13614&edit=1

 ID:                 13614
 Updated by:         ka...@php.net
 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
-Assigned To:        
+Assigned To:        kalle
-Block user comment: No
+Block user comment: Yes
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2015-01-21 22:39:56] 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?

------------------------------------------------------------------------
[2002-02-09 20:22:34] j...@php.net

james is right. we only index the english manual pages.

------------------------------------------------------------------------
[2001-12-27 19:00:43] ima...@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

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to