Translating PHP error messages (fwd)

From: Date: Tue, 19 Dec 2000 20:23:28 +0000
Subject: Translating PHP error messages (fwd)
Groups: php.dev 
Request: Send a blank email to php-dev+get-41890@lists.php.net to get a copy of this message
I think this is a worthwhile thing to pursue. If we do it at compile-time as suggested then we won't have any performance issues. I think a run-time solution might be more useful though although it would be a bit slower. Speed of printing errors and warnings isn't really critical. -Rasmus ---------- Forwarded message ---------- Date: Tue, 19 Dec 2000 19:42:02 +0100 From: Damien Seguy <dams@php.net> To: rasmus@linuxcare.com, bibi@php.net Subject: Translating PHP error messages Hi Rasmus, I have noticed that all the error messages are in English. I think it could be interesting for all to be able to build a PHP version with localized error messages. This is the way I was thinking to build it: 1. For every php_error() function call, replace the second argument (which is a constant) with a #define 2. Gather all #define statements in one file called <langage>.h somewhere (I really dont know where to put those files) 3. Add a compilation directive (something like --lang=<langage>) to let the user choose the langage he wants I know this is a huge work (I've counted 1739 distincts call to php_error) to go through every files to modify the php_error() function calls. With little effort, PHP will become more user-friendly and speak in everyone's own language. So let me know what you are thinking about this project, or if it is already started. I also wonder who (where) is the best to be asked for. I understand that PHP is a community effort, I'd like to take my share, but without pissing everyone off. Can you help me help you? Best regards Ghislain and Damien Seguy. http://www.nexen.net/

« previous php.dev (#41890) next »