[development] Simpletest question
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.
Ok, thanks for the url, I read the thread.
For escaping, a simple check_plain() is enough.
More information about the development