2017-11-04, 00:35:47
I'm working on a small plugin with a multi-language interface.
The problem is that the selected language is not displayed immediately (content), but after the second click on submit.
Actually, I use the same way as in the admin settings to change the language.
I use this function:
The problem is that the selected language is not displayed immediately (content), but after the second click on submit.
Actually, I use the same way as in the admin settings to change the language.
I use this function:
PHP Code:
$xml = getXML(dpeventGSECCONTENT);
$language = $xml->lang_settings;
i18n_merge('dp_event', $language) || i18n_merge('dp_event', 'en_US');