Closed samuelsov closed 7 years ago
I think the problem is that there is a confusion between dbLocale which should contain the underscore and tsLocale which should not.
We can solve this problem by replacing :
$swapLang = \CRM_Utils_AutoClean::swap('global://dbLocale?getter', 'call://i18n/setLocale', $mailing->language);
to :
$swapLang = \CRM_Utils_AutoClean::swap('global://tsLocale?getter', 'call://i18n/setLocale', $mailing->language);
But we might want to use getLocale instead of the global variable ?
Not sure how CRM_Utils_AutoClean::swap
is working though...
PR merged! 👍
When using Flexmailer with Mosaico in a multilingual settings, there is some db error like :
The table name is replaced by its i18n equivalent but use two underscore instead of one.