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.
The replicator file has to call to t() that should be replaced by $this->t().
Comment | File | Size | Author |
---|---|---|---|
#7 | dependency_injection_for_t_calls-3004635-7.patch | 724 bytes | LaravZ |
#2 | dependency_injection_for_t_calls-3004635-2.patch | 1.08 KB | LaravZ |
Comments
Comment #2
LaravZ CreditAttribution: LaravZ at Ordina Digital Services commentedComment #4
dawehnerOne patch at a time :)
Comment #6
yoruvo CreditAttribution: yoruvo commentedSadly this is an incorrect fix.
Comment #7
LaravZ CreditAttribution: LaravZ as a volunteer commentedThis can either be fixed by removing the new code or by adding (for example) the StringTranslationTrait.
@ivi.arocom, can you try the following patch for now? I guess automated testing should also be added, since this error was not caught. Though perhaps this should be a new issue (not too sure about whether we can remain working in this one).