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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | remove_t_from_block_asserts-1741338-9.patch | 26.3 KB | lazysoundsystem |
| #7 | remove_t_from_block_asserts-1741338-7.patch | 19.83 KB | lazysoundsystem |
| #1 | remove-t-from-Block-asserts-1741338-1.patch | 32.03 KB | lazysoundsystem |
Comments
Comment #1
lazysoundsystem commentedHere's the patch.
Comment #2
lazysoundsystem commentedI 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.
Comment #3
lars toomre commented#1: remove-t-from-Block-asserts-1741338-1.patch queued for re-testing.
Comment #4
lars toomre commentedI have reviewed all of the t() changes in this patch and they are appropriate. The tests come back green too. Hence, RTBC.
Comment #5
dries commentedCommitted to 8.x. Thanks.
Comment #6
xjmWe're backporting these. :)
Comment #7
lazysoundsystem commentedAnd here is the backport.
Comment #8
lazysoundsystem commentedFound some more for 7.x, I'll reroll this patch.
Comment #9
lazysoundsystem commentedOkay, this one's better.
Comment #10
dcam commented#9 looks good to me. I didn't find any more t()'s around assert messages.
Comment #11
webchickTum te tum...
Comment #12
jhodgdonThanks! Committed to 7.x.