Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As suggested by @Cottser on #500866: [META] remove t() from assert message, this is a new issue to pick up the stragglers from the t() clean-up in assert messages and groups.
Comment | File | Size | Author |
---|---|---|---|
#5 | removing_remaining_ts-2035077-5.patch | 21.98 KB | lazysoundsystem |
#3 | removing_remaining_ts-2035077-3.patch | 21.79 KB | lazysoundsystem |
#1 | removing_remaining_ts-2035077-1.patch | 21.54 KB | lazysoundsystem |
Comments
Comment #1
lazysoundsystem CreditAttribution: lazysoundsystem commentedHere's the patch for 8.x.
Comment #2
Crell CreditAttribution: Crell commentedPlease use Drupal\Component\Utility\String::format() instead of format_string(). There's several places in this patch that need that change.
Comment #3
lazysoundsystem CreditAttribution: lazysoundsystem commentedThanks for the quick feedback. I think this one is better.
Comment #4
Crell CreditAttribution: Crell commentedMissed a format_string().
Missed a format_string().
Comment #5
lazysoundsystem CreditAttribution: lazysoundsystem commentedThanks - I wasn't sure whether to change those two as they were already there (and there are thousands of other format_string() calls in the tests that need changing, which I'll happily do in a separate issue.)
Here they are removed.
Comment #6
lazysoundsystem CreditAttribution: lazysoundsystem commentedSetting back to 'needs review'.
Comment #7
Crell CreditAttribution: Crell commentedThat's always a gray area. :-) This looks good for now. Thanks!
Comment #8
jhodgdonThanks! Committed this one to 8.x. I don't think it probably needs backporting to 7.x?
Comment #9
lazysoundsystem CreditAttribution: lazysoundsystem commentedI think 'needs' is too strong, but there are quite a few of these remaining in the 7.x tests.
I looked through the original list and found the following modules still have outstanding t()s - with an approximate number of instances in parentheses (I haven't checked they all should be removed):
blog (20), dashboard (17), profile (28) and trigger (15) (these have no 8.x equivalents and so got overlooked)
simpletest (85) - the 7.x patch was a straight port of the 8.x patch, and so there are many instances remaining in tests which aren't in 8.x
system (10), menu (1) and node (1).
Comment #10
jhodgdonLet's file a separate issue for the 7.x "remaining changes" clean-up, since I think they aren't really the same ones covered in this issue. OK?
Comment #11
Crell CreditAttribution: Crell commentedAgreed on new issue for D7.