boonex / dolphin.pro

Dolphin.Pro - Social Network Platform
http://www.boonex.com
MIT License
145 stars 138 forks source link

Email header / footer are out of proper localization #639

Open LeonidSokushev opened 6 years ago

LeonidSokushev commented 6 years ago

If "person A" (with German language) performs some action which calls email sending to "person B"(Chinese) via email templates system then "person B" gets a letter with the proper localized body (on Chinese) but with header / footer on German. Language keys from templates/base/_email_footer.html react on sender's language settings. Need to correct this for using the recipient data.

AlexTr commented 5 years ago

Now including email header/footer is based on templates engine, which can only process current language on site only, so current structure don't allow to switch language dynamically or it's very resource intensive.