You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set custom lexicon entries for additional languages, but the hook MailChimpSubscribe always used the standard language and the current language (cultureKey) of the page was ignored.
I checked /core/components/mailchimpsubscribe/model/mailchimpsubscribe/mailchimpsubscribe.class.php for these outputs and ist uses $this->modx->cultureKey for getting the error messages, which always is set to the default language. When I use $this->modx->getOption('cultureKey') it works fine.
I have a language switch on system event OnMODXInit and ClientConfig_ConfigChange. I also set the same events as the plugin ContextRouter, but this didnt change anything. I assume the hook is initiated before the language switch is executed? The hook uses $modx->getService().
When I set the cultureKey additionally with $modx->cultureKey = "fr"; in the language switch it works, but I assumed that $modx->switchContext('webFR'); would do this anyway.
I set custom lexicon entries for additional languages, but the hook MailChimpSubscribe always used the standard language and the current language (cultureKey) of the page was ignored.
I checked /core/components/mailchimpsubscribe/model/mailchimpsubscribe/mailchimpsubscribe.class.php for these outputs and ist uses
$this->modx->cultureKey
for getting the error messages, which always is set to the default language. When I use$this->modx->getOption('cultureKey')
it works fine.I have a language switch on system event OnMODXInit and ClientConfig_ConfigChange. I also set the same events as the plugin ContextRouter, but this didnt change anything. I assume the hook is initiated before the language switch is executed? The hook uses $modx->getService().
When I set the cultureKey additionally with
$modx->cultureKey = "fr";
in the language switch it works, but I assumed that$modx->switchContext('webFR');
would do this anyway.The text was updated successfully, but these errors were encountered: