Re: GetText string not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux