#41251 [Bgs]: Greek text appearing in English website
| From: | bjori@php.net | Date: | Tue, 01 May 2007 15:32:56 +0000 |
| Subject: | #41251 [Bgs]: Greek text appearing in English website | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-35280@lists.php.net to get a copy of this message | ||
ID: 41251
Updated by: bjori@php.net
Reported By: r_o_barry at yahoo dot co dot uk
Status: Bogus
Bug Type: Website problem
PHP Version: Irrelevant
New Comment:
You can pick your preferred language on php.net/my.php
By default, php.net remembers which language you used last.
Previous Comments:
------------------------------------------------------------------------
[2007-05-01 15:04:27] r_o_barry at yahoo dot co dot uk
I didn't mean to waste time, but somehow I defaulted to the Greek site
when I did a search from php.net. From then on I was stuck in Greek and
couldn't get back to English, even after logging out completely and
going back in.
I also tried selecting English language from a Greek page but still
stayed in Greek. That is why I thought there was a problem with your
website. I didn't notice the /el/ in the url. Even if I did I might
have thought it meant English Language, not "ELLAS".
I hope I do not experience any more trouble with your site,
Regards
Robin Barry
------------------------------------------------------------------------
[2007-05-01 14:07:26] bjori@php.net
http://us2.php.net/manual/el/function.setcookie.php
note the */el/*, the english version is under /en/:
http://us2.php.net/manual/en/function.setcookie.php
------------------------------------------------------------------------
[2007-05-01 13:52:29] r_o_barry at yahoo dot co dot uk
Description:
------------
English manual pages are appearing with Greek text either in whole or
in part. This does not help with understanding!!!
e.g. http://us2.php.net/manual/el/function.setcookie.php
Start of page appears as reproduced below:
Reproduce code:
---------------
setcookie
(PHP 3, PHP 4, PHP 5)
setcookie --
Στέλνοντας
ένα cookie
Περιγραφή
bool setcookie ( string name [, string value [, int expire [, string
path [, string domain [, int secure]]]]] )
Η setcookie() ορίζει
να
σταλεί ένα cookie
μαζί με
τους
υπόλοιπους
HTTP
headers. Όπως και
οι
άλλοι headers, τα cookies
πρέπει να
στέλνονται
πριν από
οποιοδήποτε
αποτέλεσμα
(output)
του script σας
(αυτό
είναι ένας
περιορισμός
του
πρωτοκόλου).
Αυτό
προϋποθέτει
ότι εσείς
τοποθετείτε
τις
κλήσεις
αυτής της
συνάρτησης
πριν από
κάθε
output,
συμπεριλαμβανομένων
των <html> και <head> tags
όπως
επίσης
και
οπιονδήποτε
κενών. Αν το output
υπάρχει
πριν
από την
κλήση
αυτής της
συνάρτησης,
η
setcookie() θα
αποτύχει
και
θα
επιστρέψει
FALSE.
Αν η setcookie()
εκτελεστεί
επιτυχώς,
θα
επιστρέψει
TRUE.
Αυτό όμως
δεν
δείχνει αν
ο
χρήστης
έχει
δεχθεί το cookie.
Óçìåßùóç: Στην PHP 4,
μπορείτε
να
χρησιμοποιήσετε
buffering στο output για να
στείλετε
το output
πριν από
την
κλήση
αυτής
της
συνάρτησης,
κάνοντας buffer
στον server το overhead
ολόκληρου
του output στον browser
μέχρι αυτό
να
σταλεί.
Μπορείτε
να
το κάνετε
αυτό
καλώντας
την
ob_start() και την ob_end_flush()
στο script σας, ή
θέτοντας
την
output_buffering configuration
ντιρεκτίβα
στο php.ini ή στα
αρχεία configuration
του
server.
Όλες οι
παράμετροι
εκτός από
την
παράμετρο name
είναι
προαιρετικές.
Μπορείτε
επίσης να
αντικαταστήσετε
μια
παράμετρο
με
ένα κενό string ("")
προκειμένου
να
παρακάμψετε
αυτή την
παράμετρο.
Επειδή οι
παράμετροι
expire
και secure είναι
ακέραιοι,
δεν
μπορούν να
παρακαμφθούν
με ένα κενό string,
αλλά
πρέπει
να
χρησιμοποιήσετε
το μηδέν (0). Ο
παρακάτω
πίνακας
εξηγεί
κάθε
παράμετρο
της
συνάρτησης
setcookie(), και
διαβάστε
το
τμήμα
Ορισμό
cookie για Netscape για
οδηγίες
σχετικά με
το
πώς κάθε
παράμετρος
setcookie()
δουλεύει
και
το RFC 2965 για
επιπρόσθετες
πληροφορίες
σχετικά με
το
πώς η HTTP cookies
δουλεύει.
Ðßíáêáò 1. setcookie() εξήγηση
παραμέτρων
Expected result:
----------------
Text in English, not Greek
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41251&edit=1