Re: GetText string not found

From: Date: Tue, 13 Jun 2006 11:47:04 +0000
Subject: Re: GetText string not found
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-237884@lists.php.net to get a copy of this message
Ruben Rubio Rey wrote: > Hi, > > I am using gettext to get a web page in several languages. > > When gettext does not found an string, it shows the string. > > Is it possible to detect when a string is not found, in order to advis me ? sure in a very simplistic manner; function __($s) { $r = _($s); if ($r === $s) logUntranslatedStr($s); return $r; } but the php gettext extension does not seem to provide such a functionality natively. > > Thanks in advance, > Ruben Rubio Rey >

« previous php.general (#237884) next »