Closed (fixed)
Project:
User status change notifications
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2007 at 23:40 UTC
Updated:
6 Feb 2008 at 16:42 UTC
The content of the notification mails should be in t().
There is also a typo in line 29: "set" -> "sent".
| Comment | File | Size | Author |
|---|---|---|---|
| translate_mail.patch.txt | 2.35 KB | Standart |
Comments
Comment #1
dwwFixed the typo, thanks.
However, I won't be changing the message text into translatable strings. This is broken in D5 and before. It's now fixed in D6 (see http://drupal.org/node/82499). However, if you did this in D5, site users could be getting emails in languages they don't understand at all due to weirdness with what language happens to be active when these emails are getting triggered (e.g. admin approves account, admin's prefered language is Spanish, user's prefered is Turkish, user gets email in Spanish).
And, since this module's functionality is now part of D6's user.module, all of this works perfectly in the right languages. ;)
Cheers,
-Derek
Comment #2
Standart commentedOk, I see.
It's good to hear that this has been fixed in D6. Anyways, D5 will be around for another year maybe. Though of course I agree that this is a bug, I think this module should behave like core. That's what I expect especially as it's common to use core features and this module together. I guess many sites only use one language and it's a lot to translate as it's not part of any translation available. In fact I just did a German translation including the mail content.
If you're using this module and translations you will have to deal with this problem anyway, as translated mails will be sent to the user by the user.module. This is even recommended by this module.
I'd vote for translating mail content anyway, as the situation now isn't any better but incompatible with core.
Thanks!
Comment #3
dwwhrm, ok. i guess you're right. this actually came up when i first took over this module, and i asked some translator-aware folks (killes, i believe), and he recommended *not* translating these strings. but, given that user.module does, i guess that's the most sane approach, even though it's really broken in some cases.
Comment #4
dwwFixed in HEAD, DRUPAL-5 and DRUPAL-4-7. I also regenerated the translation templates on all branches. Thanks.
Comment #5
(not verified) commentedComment #6
pulpzebra commentedHowever, the translation of email contents doesn't solve the problem of sending emails to user speaking a different language than the admin's one.
I found a simple workaround this way:
I don't believe this is the correct approach, "drupally" speaking, and since I still haven't tried 6.x, can't tell wether this problem has been solved or not.
Comment #7
dwwDrupal 6 indeed solves this problem natively. I won't be back-porting anything like this to the 5.x contrib version of this module, sorry, I just have way too many other things to worry about.