GetSimple Support Forum
QUESTION i18n_merge - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION i18n_merge (/showthread.php?tid=10023)



i18n_merge - smdp-1971 - 2017-11-04

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:
PHP Code:
$xml getXML(dpeventGSECCONTENT);
$language $xml->lang_settings;
i18n_merge('dp_event'$language) || i18n_merge('dp_event''en_US');