Replace usage of t() with $this->t() and use Drupal\Core\StringTranslation\StringTranslationTrait when necessary.

Issue fork exif-2846254

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nehakhadke created an issue. See original summary.

nehakhadke’s picture

StatusFileSize
new28.64 KB
nkoporec’s picture

StatusFileSize
new24.5 KB

This patch needs a reroll since tests have been deleted in the recent commit.Applying a new one.

useernamee’s picture

I have reviewed patch #3 and it had some errors ($this->t() calls inside static functions and there were few occurrences were $this was missing). I have removed this errors, here is the patch (and interdiff).

damienmckenna’s picture

damienmckenna’s picture

Issue summary: View changes
Status: Needs review » Needs work
Parent issue: #3169084: Plan for EXIF 8.x-1.3 »

This needs to be rerolled, and I think some of the changes won't work without adding a use statement for Drupal\Core\StringTranslation\StringTranslationTrait.

elber’s picture

Assigned: Unassigned » elber

Hi I will try to do a rerroll

elber’s picture

StatusFileSize
new29.51 KB

Hi I followed this doc (https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...) but I couldn't to apply the patch #4. Can someone help me ?

damienmckenna’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

A lot of the changes from the last patch no longer apply, so this needs to be reworked.

Also, please work from the 8.x-2.x branch, the 8.x-1.x branch is no longer supported.

elber’s picture

I will try it, thank you.

elber’s picture

Assigned: elber » Unassigned
Status: Needs work » Needs review
StatusFileSize
new236.18 KB
chakkche’s picture

Assigned: Unassigned » chakkche

I will review this.

chakkche’s picture

Status: Needs review » Needs work

I can still see lot of t() calls after applying the patch from #11 . i will work on this.

chakkche’s picture

Assigned: chakkche » Unassigned
Status: Needs work » Needs review
StatusFileSize
new43.57 KB

Fixed t() calls & PHPCBF issues. Provided them in both merge request and patch file.

anabpv’s picture

Assigned: Unassigned » anabpv

I will review this

anabpv’s picture

Assigned: anabpv » Unassigned
Status: Needs review » Reviewed & tested by the community

Steps performed:
1 - downloaded the module and applied the commits from MR!2
2 - ran phpcs to properly review the t() calls
3 - checked the commits manually

Moving to RTBC.

  • DamienMcKenna committed bfe7b39 on 8.x-2.x
    Issue #2846254 by chakkche, elber, useernamee, nehakhadke, nkoporec,...
damienmckenna’s picture

Title: $this->t() should be used instead of t() for Drupal 8 version » $this->t() should be used instead of t()
Status: Reviewed & tested by the community » Fixed
Parent issue: » #3273802: Plan for Exif 8.x-2.4

Committed. Thanks everyone!

Status: Fixed » Closed (fixed)

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