Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105260 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46136 invoked from network); 12 Apr 2019 01:29:06 -0000 Received: from unknown (HELO mail.experimentalworks.net) (84.19.169.162) by pb1.pair.com with SMTP; 12 Apr 2019 01:29:06 -0000 Received: from kuechenschabe.fritz.box (ppp-188-174-60-130.dynamic.mnet-online.de [188.174.60.130]) by mail.experimentalworks.net (Postfix) with ESMTPSA id C0E92444A5; Fri, 12 Apr 2019 00:26:34 +0200 (CEST) Message-ID: <1555021589.9888.23.camel@schlueters.de> To: Michael Morris , PHP internals Date: Fri, 12 Apr 2019 00:26:29 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV][DISCUSSION] Multilingual PHP From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Do, 2019-04-11 at 15:32 -0500, Michael Morris wrote: > Submitted to the floor is a Wired article from 2 days ago I came > across > > https://www.wired.com/story/coding-is-for-everyoneas-long-as-you-spea > k-english/ > Oh, memories. Microsoft Office has (or had) localised macros. This lead to many problems since localisaton depends on language installed and macros from one don't work on the other ... I don't believe the language itself should be translated. This limits portability and there are just a few keywords. If somebody wants to create localised libraries they can of course do ... An area I would find interesting is error messages. To a little degree we already have them localized: $ php -r 'setlocale(LC_ALL, "de_DE");fopen("/etc/passwd", "w");' PHP Warning:  fopen(/etc/passwd): failed to open stream: Keine Berechtigung in Command line code on line 1 Expanding might be interesting, but it is not a trivial task, as this might make error reporting (also suppressed one, i.e. deprecation warnings) slower and it is a big translation and maintenance work and has impact on support (I myself run my machines typically in English so I can Google error messages and receive better results or can grep the source for the origin) johannes