Translations should be prefixed by '$this->' in D8, When written in class functions.

Comments

kunal.kursija created an issue. See original summary.

kunalkursija’s picture

StatusFileSize
new1.35 KB

Attaching Patch

kunalkursija’s picture

Status: Active » Needs review
kunalkursija’s picture

StatusFileSize
new1.35 KB

Please ignore the previous patch. Attaching new patch.

dishabhadra’s picture

Status: Needs review » Reviewed & tested by the community

It's good to replace t() with $this->t().

bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.