Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I am using user_relationships module with i18n. The mails for request, approve, disaprove are translated with the translation interface. Client reported that the mail sent to the requestee is not in its language but in the language of the requester.
So after debugging i realized that t() function needs to get the requestee language as argument.
Here is a patch for it.
Hope it helps someone
Comment | File | Size | Author |
---|---|---|---|
#6 | user_relationships_mailer-sender-language-809332.patch | 1.01 KB | mrf |
user_relationship_patch.diff | 885 bytes | svilen |
Comments
Comment #1
feuillet CreditAttribution: feuillet commentedUnfortunately this patch doesn't work. Has anyone a Idea how to send the E-Mail in the Language of the recieving user?
Comment #2
mrf CreditAttribution: mrf commentedClosed #1113830: UR Mailer doesn't send messages in Requestee's language as a duplicate of this issue.
Comment #3
mrf CreditAttribution: mrf commentedComment #5
mrf CreditAttribution: mrf commentedLooks like this patch just needs to be reformatted for git.
Comment #6
mrf CreditAttribution: mrf commentedProperly formatted patch.
Comment #7
mrf CreditAttribution: mrf commentedClosed #726628: relationship messages being sent in the wrong language as a duplicate of this issue.
Comment #8
bluesman2014 CreditAttribution: bluesman2014 commentedI'm getting exactly the same issue in D7.
Using the patch above creates a 500 error though.