t() calls should be avoided in classes use $this->t()

CommentFileSizeAuthor
#2 3031252-2.patch2.58 KBsatyanarayan reddy

Comments

Satyanarayan Reddy created an issue. See original summary.

satyanarayan reddy’s picture

Status: Active » Needs review
StatusFileSize
new2.58 KB

t() calls should be avoided in classes use $this->t()

renatog’s picture

Status: Needs review » Reviewed & tested by the community

Really makes sense.

knyshuk.vova’s picture

+1 for RTBC

satyanarayan reddy’s picture

baikho’s picture

Status: Reviewed & tested by the community » Needs work

t() calls should be avoided in classes use $this->t()

The added patch replaces t() strings in the .module file.

berenddeboer’s picture

Status: Needs work » Closed (works as designed)

This patch is nonsense. You can't use $this->t() in procedural code.