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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

feuillet’s picture

Unfortunately this patch doesn't work. Has anyone a Idea how to send the E-Mail in the Language of the recieving user?

mrf’s picture

mrf’s picture

Status: Patch (to be ported) » Needs review

Status: Needs review » Needs work

The last submitted patch, user_relationship_patch.diff, failed testing.

mrf’s picture

Status: Needs work » Patch (to be ported)

Looks like this patch just needs to be reformatted for git.

mrf’s picture

Status: Patch (to be ported) » Needs review
FileSize
1.01 KB

Properly formatted patch.

mrf’s picture

bluesman2014’s picture

Version: 6.x-1.x-dev » 7.x-1.0-alpha6
Issue summary: View changes
Status: Needs review » Needs work

I'm getting exactly the same issue in D7.
Using the patch above creates a 500 error though.