Problem/Motivation
There is no need to use t() in tests, unless we're testing translations, however in core we do not follow this consistently, which does not set a good example for new contributions.
In #3133726: [meta] Remove usage of t() in tests not testing translation we identified there are severals of calls to t() in calls to clickViewsOperationLink(), helperButtonHasLabel() and optionExists() and that removing all these in one go seems to be a suitable way of attacking this problem.
Proposed resolution
Identify and remove all calls to t() wrapped in calls to clickViewsOperationLink(), helperButtonHasLabel() and optionExists(), except those used by translation-related code (if any).
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff_2-6.txt | 2.62 KB | siddhant.bhosale |
#6 | 3153264-6.patch | 9.77 KB | siddhant.bhosale |
#2 | 3153264-2.patch | 12.59 KB | Hardik_Patel_12 |
Comments
Comment #2
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedKindly review the patch.
Comment #3
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedComment #4
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedComment #5
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedHi @Hardik_Patel_12,
The following hunk already exists in the core, and was skipping while applying the patch. So removing the code from your patch.
Marking this to needs work.
Comment #6
siddhant.bhosale CreditAttribution: siddhant.bhosale as a volunteer and at QED42 commentedHi,
Adding the new patch and interdiff. Please review
Comment #7
mondrakeComment #8
longwaveConfirmed there are no uses of t() remaining in calls to these three methods after applying #6.
Comment #9
alexpottCommitted and pushed 7ad99c1ee8 to 9.1.x and b6c39ff6a2 to 9.0.x and 2ebe9ce923 to 8.9.x. Thanks!
Backported to 8.9.x to keep tests aligned.