- Issue created by @Rohit Rana
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 11:02am 12 October 2023 - last update
about 1 year ago Composer require failure - last update
about 1 year ago 2 pass - Status changed to Needs work
about 1 year ago 6:04am 31 October 2023 - Assigned to AditiVB
- Status changed to Needs review
about 1 year ago 9:14am 31 October 2023 - last update
about 1 year ago Composer require failure - Issue was unassigned.
- last update
about 1 year ago Composer require failure - 🇮🇳India Raveen Kumar
Absolutely, in Drupal 8 and 9, the t() function is indeed discouraged for use within classes. Instead, you can use the \Drupal\Core\StringTranslation\StringTranslationTrait and the $this->t() method for translation within classes.
- First commit to issue fork.
- Merge request !7Resolve #3393576 "t() calls should be avoided in classes" → (Merged) created by admirlju
- Open on Drupal.org →Core: 10.1.4 + Environment: PHP 7.4 & MySQL 8last update
12 months ago Not currently mergeable. - last update
12 months ago Unable to generate test groups - last update
12 months ago Unable to generate test groups - last update
12 months ago Unable to generate test groups - last update
12 months ago Unable to generate test groups Created an issue fork, and applied the patches. Locally the tests are passing, but because Drupal CI is deprecated, they will not pass with that. So I just added a basic gitlab-ci. And from what I see they are passing there. Still because of some CS fixes I'll leave this as needs review.
- Status changed to Needs work
about 1 month ago 7:07pm 16 October 2024 -
bohart →
committed 898f9e4c on 8.x-1.x authored by
admirlju →
Issue #3393576 by admirlju, Aditi Saraf, alt.dev, bohart: t() calls...
-
bohart →
committed 898f9e4c on 8.x-1.x authored by
admirlju →
- 🇺🇦Ukraine bohart Lutsk, Ukraine
Merged. The changes will be a part of the next module release. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.