Configure flag for turning on/off the function alias "_()" for "gettext()"

From: Date: Fri, 03 Oct 2003 08:03:00 +0000
Subject: Configure flag for turning on/off the function alias "_()" for "gettext()"
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-621@lists.php.net to get a copy of this message
Hello! Not sure if this is right place for this, but anyways: Wouldn't it be nice to have a configure flag for turning on/off the function alias _() for the gettext() function, or maybe even a php.ini setting if that's possible. If this feature existed it would be possible to create your own _() function which could do things in addition to calling gettext(). Example: function _($string) { $ret = gettext($string); if ($ret == $string) { /*** ... notify of missing msgid in .mo/.po file ... ***/ } return $ret; } This however would be slower than using the alias _() directly, but it would be _VERY_ nice to have for debugging and development purposes. -- Bjørn Tore Hagen Programmer

« previous php.i18n (#621) next »