-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Mail templates sent with scheduler don't get translated #3805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same problem. Please, add this fix to future releases! |
Hi @srbarba , @nobodypb can you clarify the solution just for test I edited file: vendor/magento/module-email/Model/AbstractTemplate.php in constructor I added:
and in method applyDesignConfig()
but when I change order status from backend it is giving me an error. please can you help me, to understand what is wrong with my changes |
I'm sorry @JDavidVR but I only used this fix for my custom module. I didn't try to set it at core. Reading the function I think you should use this fix AFTER the first validation:
Can you share the given error? |
@srbarba is right, but make sure to also change the constructor of |
@nobodypb if this issue is still actual please describe it according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result. |
According to contributor guide, tickets without response for two weeks should be closed. |
If I sent mails using cron they won't get translated, because PART_TRANSLATE is never loaded in the App\Area.
To quick fix this I added
to \Magento\Email\Model\AbstractTemplate::applyDesignConfig()
(And some di things for _areaList)
I don't know if that bug is somehow related to my setup, I'm running Magento 2.0.2 on php7
The text was updated successfully, but these errors were encountered: