As per http://drupal.org/simpletest-tutorial-drupal7#t , I scanned the tests in the block module and removed t()s from assert messages, or changed them to format_string() where appropriate.

Patch follows.

Comments

lazysoundsystem’s picture

Status: Active » Needs review
StatusFileSize
new32.03 KB

Here's the patch.

lazysoundsystem’s picture

I started this before reading through #500866: [META] remove t() from assert message, where they've been trying to solve this since 2009. Best to wait for confirmation there before putting any more work into this.

lars toomre’s picture

lars toomre’s picture

Status: Needs review » Reviewed & tested by the community

I have reviewed all of the t() changes in this patch and they are appropriate. The tests come back green too. Hence, RTBC.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

xjm’s picture

Status: Fixed » Patch (to be ported)
Issue tags: +Needs backport to D7

We're backporting these. :)

lazysoundsystem’s picture

Version: 8.x-dev » 7.x-dev
Status: Patch (to be ported) » Needs review
StatusFileSize
new19.83 KB

And here is the backport.

lazysoundsystem’s picture

Assigned: Unassigned » lazysoundsystem
Status: Needs review » Needs work

Found some more for 7.x, I'll reroll this patch.

lazysoundsystem’s picture

Assigned: lazysoundsystem » Unassigned
Status: Needs work » Needs review
StatusFileSize
new26.3 KB

Okay, this one's better.

dcam’s picture

Status: Needs review » Reviewed & tested by the community

#9 looks good to me. I didn't find any more t()'s around assert messages.

webchick’s picture

Assigned: Unassigned » jhodgdon

Tum te tum...

jhodgdon’s picture

Assigned: jhodgdon » Unassigned
Status: Reviewed & tested by the community » Fixed

Thanks! Committed to 7.x.

Automatically closed -- issue fixed for 2 weeks with no activity.