You are here: Home
Support site for Tips and Tricks HQ premium products
Hello,
I’ve tried to modify the wp-eMember/wp_eMember1.php file to make it work with WPML as explained in multilanguage_support thread.
However, it doesn’t work for me because the lang coding of the 2 plugins doesn’t match except for French(EN vs ENG, DE vs GER, NL vs NLD). Please note, the base language of my site is French.
Here’s what I have added to try to make it work:
function emember_bootstrap(){
global $eMember_language_file;
include_once(’emember_config.php’);
$emember_config = Emember_Config::getInstance();
if (ICL_LANGUAGE_CODE == “fr”){
$language_file = ‘lang/fr.php’;
}elseif (ICL_LANGUAGE_CODE == “nl”){
$language_file = ‘lang/nld.php’;
}elseif (ICL_LANGUAGE_CODE == “en”){
$language_file = ‘lang/eng.php’;
}elseif (ICL_LANGUAGE_CODE == “de”){
$language_file = ‘lang/ger.php’;
}else{
$language_file = ‘lang/’.ICL_LANGUAGE_CODE.’.php’;
}
include_once($language_file);
I don’t get any message error but all of the restricted content is now visible.
Can you please help!