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.
User should recive mails in the account preferred language. This affects to i18n_user module
Comment | File | Size | Author |
---|---|---|---|
#18 | i18n-2912113-18-user-prefered-language.patch | 1.27 KB | akalam |
Comments
Comment #2
akalam CreditAttribution: akalam at Atenea tech commentedComment #3
akalam CreditAttribution: akalam at Atenea tech commentedComment #4
joseph.olstadreviewed, made a change, if the user preferred language is not set then use language_default()
Comment #6
joseph.olstadComment #9
joseph.olstadgot a little more timid on this change,
message language, otherwise user preferred language and if not defined, then site default language
Comment #10
sano CreditAttribution: sano commentedI am getting an error after installing the 7.x-1.20 version:
( ! ) Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /var/www/rovdev/sites/all/modules/i18n/i18n_user/i18n_user.module on line 13
I fixed it by creating a variable for the user_preferred_language($message['params']['account']) call and then changed the isset to test that variable. I can produce a patch, but it will take me a while as I am a noob at that. Let me know if interested.
Comment #11
ansgar CreditAttribution: ansgar commentedI got the same error when updating on 1.20.
Is the suggestion in the error message a solution?
Comment #12
joseph.olstadyes sorry, fix comming shortly.
Comment #14
joseph.olstadComment #16
joseph.olstadfixed in release 7.x-1.22 , I put an extra check in the dev branch for next release but should work either way.
Comment #18
akalam CreditAttribution: akalam at Atenea tech commentedPlease reopen. In last dev fails when you try to recover password. Then the mail is sent in the current language, not in the user preferred
Comment #19
joseph.olstadComment #21
joseph.olstadfixed in 7.x-1.x dev branch