Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Estore – Redirection message upon checkout not translated with multilingual
Tagged: qTranslate, redirection, Translation
- This topic has 6 replies, 2 voices, and was last updated 12 years, 1 month ago by
b_machuel.
-
AuthorPosts
-
July 8, 2012 at 9:08 am #6834
b_machuel
MemberHi,
I managed to have the translation of eStore work with qtranslate (French and English).
I still have a problem however with the redirection message that is displayed upon checkout, which only appears in French.
One more question: is it possible to edit the email tags?
Thanks in advance for your kind assistance.
Best regards,
Benoît
July 9, 2012 at 2:58 am #47111admin
KeymasterHi, That would probably because on the checkout redirection it doesn’t know the language hack that you added so it is doing the standard language loading based on whatever you specified in the admin settings (I am guessing it is set to french). What hack did you do to get the qTranslate working? Also please post a link to the page where I can go and checkout what you have done.
No, the email tags can’t be edited.
July 9, 2012 at 4:19 am #47112b_machuel
MemberMany thanks for your prompt reply. I edited wp_eStore1.php as follows:
//includes
/*$cart_language = get_option(‘eStore_cart_language’);
if (!empty($cart_language))
$language_file = “languages/”.$cart_language;
else
$language_file = “languages/eng.php”;
include_once($language_file);*/
function wp_eStore_load_qTranslate_lang() // Added qtranslate support
{
$cart_language = qtrans_getLanguage();
if ($cart_language == “en”) $language_file = “languages/i18n.php”;
else $language_file = “languages/fr.php”;
if(empty($language_file)) {
$cart_language = get_option(‘eStore_cart_language’);
if (!empty($cart_language)){
$language_file = “languages/”.$cart_language;
}
else{
$language_file = “languages/fr.php”;
}
}
include_once($language_file);
}
add_action(‘init’, ‘wp_eStore_load_qTranslate_lang’); // End of qtranslate support
The website (under development) can be reached at the following address:
http://www.label-inconnu.com/e-shop/enregistrements/lucis-memoria?lang=en
July 10, 2012 at 6:46 am #47113admin
KeymasterThank you… I think what is not happening is that in the payment submission page it is not getting the following value so it is not dynamically loading the correct language file:
lang=en
Can you please deactivate the “Fancy Redirection on checkout” feature from eStore settings so I can test one thing?
July 10, 2012 at 7:24 am #47114b_machuel
MemberDone.
Benoît
July 11, 2012 at 3:49 am #47115admin
KeymasterThank you. The issue is as I suspected earlier. Lets try the following tweak so we can tell which language to load when it goes to the checkout processing page.
Open the “eStore_cart.php” file and search for the following block of code:
"'.WP_ESTORE_URL.'/eStore_payment_submission.php"
Once you find it, change it the following:
"'.WP_ESTORE_URL.'/eStore_payment_submission.php?lang='.qtrans_getLanguage().'"
This should add the “lang=en” or “lang=fr” to the URL which will help it to load the correct language file.
July 11, 2012 at 9:44 am #47116b_machuel
MemberThis is working. Many thanks.
Best wishes,
Benoît
-
AuthorPosts
- You must be logged in to reply to this topic.