Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – how to integrate with qTranslate
- This topic has 6 replies, 2 voices, and was last updated 11 years, 9 months ago by admin.
-
AuthorPosts
-
February 12, 2013 at 3:22 pm #8556compass internationalMember
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).
February 13, 2013 at 2:26 am #53791adminKeymasterThis post should help (look at the 3rd page where it has example for WP eEmember):
https://support.tipsandtricks-hq.com/forums/topic/multilanguage-support/
February 13, 2013 at 1:16 pm #53792compass internationalMemberI 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!
February 13, 2013 at 2:42 pm #53793compass internationalMemberI 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.
February 14, 2013 at 2:10 am #53794adminKeymasterCan you tell me what language you are selecting or using on your site? Also, can you please post a link to your site?
February 14, 2013 at 4:35 pm #53795compass internationalMemberI 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/]
February 15, 2013 at 3:03 am #53796adminKeymasterI need to take a look at some settings so I sent you an email to get access to your site.
-
AuthorPosts
- You must be logged in to reply to this topic.