Closed (duplicate)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Sep 2018 at 14:41 UTC
Updated:
23 Feb 2019 at 14:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Sourabhagouda SP commentedReplaced t() with $this->t() please check the patch
Comment #3
Sourabhagouda SP commentedComment #4
adamps commentedThanks @Sourabhagouda SP. Here are my comments:
1. You have changed simplenews.api.php, but $this is not valid here
2. After I applied your patch, I ran a regular expression search in all php files for
[^>a-z]t\(. I found 27 entries you didn't change and most likely could change.Comment #5
adamps commented3. I found bugs where you have added $this inside a static function.
Comment #6
ggh commentedUpdated patch with requested changes, Please verify
Comment #8
ggh commentedComment #10
ggh commentedComment #12
adamps commentedThis is a duplicate of #2856182: $this->t() should be used instead of t() for Drupal 8 version.. The patch here still fails testing so I guess it's not finished. If you create a new patch, please post it on the other issue instead.