> At 05:16 08-09-01, Chuck Hagenbuch wrote:
> >Quoting Zeev Suraski <[EMAIL PROTECTED]>:
> >
> > > Why the heck do we have:
> > >
> > >      PHP_FALIAS(_,   gettext,    NULL)
> > >
> > > in ext/gettext/gettext.c
> >
> >It's a standard alias in the c library as well:
> >http://www.gnu.org/manual/gettext/html_mono/gettext.html#SEC15
>
> So I heard, but it's extremely un-PHPish and obscure.

Having an underscore as a function name is pretty weird in any language.
But it is also extremely useful.  I have reams and reams of PHP code that
has _('blah blah blal') in it.  When you internationalize a large site,
typing gettext() thousands of times does get rather old very quickly.

-Rasmus



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to