[DISCUSSION] Multilingual PHP

From: Date: Thu, 11 Apr 2019 20:32:08 +0000
Subject: [DISCUSSION] Multilingual PHP
Groups: php.internals 
Request: Send a blank email to internals+get-105253@lists.php.net to get a copy of this message
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-speak-english/ The manual of PHP is translated into multiple languages - but what are the development hurdles of the language itself being multilingual? From what I understand of the compiler - maybe not that much. The language requires an opening tag, so we could hook into that like this example for Japanese <?php[マニュアル] A PHP opening tag with such a qualifier would change over all function names and reserved words. Could these would be set on a per file basis? The php.ini file could set the default language, the .htaccess file could also on per directory. I'll stop there cause I know there are problems I haven't thought of. And I'm not going to argue the syntax I just kicked out from the top of my head is the best either. But I think it's worth the effort to at least look into the problem. Wired has a point - people learn to code faster when they are working with their own language. One of the stated goals of PHP's design has been accessibility so this seems to be appropriate. I yield the floor to those smarter and wiser than I.

« previous php.internals (#105253) next »