ActionSchedule - Set locale during mail hooks / delivery / etc
authorTim Otten <totten@civicrm.org>
Tue, 10 Aug 2021 23:45:21 +0000 (16:45 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 10 Aug 2021 23:56:00 +0000 (16:56 -0700)
commit7c0d73354402ffcdd5f70b9868b084567c7dbbd8
tree856d026702bc321e7ba1cca8117cd03dd6a1301b
parentf14b9b1bb012d93609404e63f3c61c1be56ec671
ActionSchedule - Set locale during mail hooks / delivery / etc

From a core POV, this should be unnecessary.  And I'm not sure that it's a
good idea for contrib to assume that the locale has been set to the email
receipient.  (It probably isn't done that way in some contexts.)

Never-the-less, this should provide greater continuity with the pre-existing
behavior.  If anyone, say, uses `Hook::alterMail()` to append a translated
footer, then it should continue to work in the same way as before.
CRM/Core/BAO/ActionSchedule.php