[development] Simpletest question

Pierre R. pierre.rineau at makina-corpus.com
Tue Jan 26 17:25:52 UTC 2010


On Tue, 2010-01-26 at 17:45 +0100, Daniel F. Kudwien wrote:
> > I don't see the use for t() here. This is pure technical 
> > information, why should they be translated?
> 
> As of now, we use t() in tests.
> 
> To eventually change this, see http://drupal.org/node/500866
> 
> However, even when changing this, it's likely that we will still use t() in situations like:
> 
> > > 	25    $this->pass('There are '.$row->count.' compounds in
> > > cpd_compounds');
> 
> Otherwise, $row->count or whatever other variable would be displayed unfiltered to the browser.
> 
> 
> sun

Ok, thanks for the url, I read the thread.
For escaping, a simple check_plain() is enough.

Pierre.




More information about the development mailing list