Closed (fixed)
Project:
Registration Language
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Feb 2009 at 19:16 UTC
Updated:
7 Mar 2009 at 08:20 UTC
I would like to have the password forget mail in the same language as the user, and not the current language of the site
Comments
Comment #1
kars-t commentedHi dereine :)
I will look into this and maybe I can set a language so we can translate it through the mail_edit module. But the real translation of the email can only be done by mail_edit module as these are core mails and not translatable through core methods.
Comment #2
dawehneryes thats true, here is a short example code
i think this should work
Comment #3
kars-t commentedIf you look in line 2145 of the user.module
If there is a current language use it otherwise the user preferred. I have no clue why this was used but proofs you problem...
If I read your solution correct you want to override the forms submit and handle it yourself. I bet it works but I believe hook_mail_alter is our friend here and a smaller solution:
The user is an object in the params array and still here. So I load the preferred language and send the message.
I will test this now and make a new release if it works.
Comment #4
kars-t commentedimplemented in latest version