Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2020 at 11:59 UTC
Updated:
18 Jun 2023 at 21:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch.
Comment #3
hardik_patel_12 commentedComment #4
longwaveThese are all test case modules, I don't think this is worth fixing.
Comment #5
xjmRight, we actually have a policy against using
t()unnecessarily in tests, and this is often applied to their fixtures as well. The one case for adding theset()would be if we had a phpcs rule that was checking for the translation call. Is there such a coder rule? If not, the issue can be closed wontfix.This also isn't a major-only issue nor specific to 9.0.x, so moving to the bugfix branch (which would be the backport target for a test cleanup if it were actually committed). (If it were to add
t()to non-test strings, that would be minor-only and therefore filed against 9.1.x-dev instead.)Comment #6
xjmPostponing for info on whether or not there's some phpcs rule flagging this.
Comment #12
smustgrave commented@xjm to my knowledge we still don't have a check for t() being used in tests. Think it's been up to the reviewer and committer to make sure those get in.