- This topic has 6 replies, 2 voices, and was last updated 11 years, 11 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – how to integrate with qTranslate
I am trying to build a multilingual site. I want to use qTranslate. Switching the language works well for my content, but not for the standard texts that come from eMember. I couldn’t figure out how to do it from other related posts cause they explained how to do it for eStore. So could you please give me some instruction on what to do / what to alter to get this to work? Thank you.
(I could also switch to WPML if that is easier).
This post should help (look at the 3rd page where it has example for WP eEmember):
https://support.tipsandtricks-hq.com/forums/topic/multilanguage-support/
I tried these instructions:
$lang = $emember_config->getValue(‘eMember_language’);
if (!empty($lang))$eMember_language_file = WP_EMEMBER_PATH .”lang/”.$lang.”.php”;
else $eMember_language_file = WP_EMEMBER_PATH.”lang/eng.php”;
$eMember_language_file = apply_filters(’emember_get_language_path’, $eMember_language_file, $lang);
include_once($eMember_language_file);
2. Once you find it replace it with the following block of code:
//Specify which language file to load based on WPML language selection
$language_file = ‘lang/’.ICL_LANGUAGE_CODE.’.php’;
include_once($language_file);
I added the code exactly like this. Now it displays the field names like “EMEMBER_USER_NAME” and “EMEMBER_PASSWORD” instead of the translations for the fields.
Do I have to make any other settings or alterations?
Thx!
I now installed WPML. I also renamed the language php files from ger.php to de.php and eng.php to en.php cause I thought they need to match the language code. Still it doesn’t work. It seems like there is no value for the variable being passed.
Can you tell me what language you are selecting or using on your site? Also, can you please post a link to your site?
I want to use English and German. At the moment German is set as the default in eMember.
You can find the site here: [http://contact2culture.de/wordpress/]
I need to take a look at some settings so I sent you an email to get access to your site.