Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2013 at 18:31 UTC
Updated:
29 Jul 2014 at 22:37 UTC
Jump to comment: Most recent file
Comments
Comment #1
lazysoundsystem commentedHere's the patch for 8.x.
Comment #2
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 commentedThanks for the quick feedback. I think this one is better.
Comment #4
Crell commentedMissed a format_string().
Missed a format_string().
Comment #5
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 commentedSetting back to 'needs review'.
Comment #7
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 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 commentedAgreed on new issue for D7.