Re: Error Codes, Langs, etc
| From: | Shane Caraveo | Date: | Tue, 26 Nov 2002 05:07:07 +0000 |
| Subject: | Re: Error Codes, Langs, etc | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91647@lists.php.net to get a copy of this message | ||
Sascha Schumann wrote:
cats or gettext comes to mind.Why? The error messages are for the developer, not the masses. But generaly I agree with using something else. More the point is that stuff exists, techniques exist, no need to reinvent the wheel. ShaneNeither are usable, though, because PHP would need to support multiple concurrent message catalogues on a per-thread base. gettext/catgets associate exactly one language with each process through the use of environment variables, so that they cannot be used in a multi-threaded server.A mechanism based on the bundled cdb, for example, would be superior in terms of speed, thread-safeness, and portability.