• Hi Matt

    I run the Give Plugin in two languages. Most issues have been resolved by now. The only remaining issue are the redirect pages after success (or fail aso).
    Although the success page has been translated and the form is run from the translated page containig the form button the user is always being redirected to the english version of success and co. This is probably due to the fact that you have to choose 1 page for each redirect situation. So basically the ?lang=de code is not being passed by the german form. When I do it manually (or even use the language switcher on the success page) then I get the receipt (etc) in the correct language … so basically the question would be how to get Give to adress the correct language once a form has been validated…

    Page where it leads (no matter what language): https://ml.lunique-foundation.org/support-thank-you/

    Page (working absolutely fine) where it should lead when german is selected: https://ml.lunique-foundation.org/support-thank-you/?lang=de

    Thank you for your valuable support
    Pascal

    • This topic was modified 7 years, 5 months ago by flyartcom.
    • This topic was modified 7 years, 5 months ago by flyartcom.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    HI there, apologies for the delay.

    Which multi-language plugin are you currently using?

    I think the dillemma is that our Donation Receipt is now loaded over AJAX (in order to prevent caching errors). So it’s most likely pulling the receipt table in your site language and not picking up the language switching mechanism correctly.

    I think I can help you best if you contact us directly. Fill out our contact form and choose the option “You requested I reach out to you here” and mention me and this forum URL and we’ll get you taken care of.

    Thanks!

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt
    Thanks for getting back to me! “Unfortunately” I’m on vacation now but I sure will do as you said when I’m back.
    I’m using WPML that has an Ajax option and I also set the give_admin_texts to the correct page IDs in string translation… didn’t help! Ajax option at least helped to keep the form in the correct language when switching payment options…

    Thanks Pascal

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Can you confirm whether you’ve used WPML to generate each of the MO files for each language? I need to research this a bit, but I believe in the past when I’ve tested WPML that generating the MO file generally resolves issues like this:

    https://wpml.org/forums/topic/how-to-get-wpml-to-use-mo-files/

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt
    Thanks for te input. I will have to check on this when I’ll be back from holidays

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi @flyartcom — I haven’t tested this with WPML yet, but I’m pretty sure it’s going to be the same situation. Essentially, for the Donation Confirmation page, you’ll need to create a unique confirmation page per LANGUAGE that you support on your site, and then configure each Donation Form to have it’s own custom redirect to the correct Donation Confirmation page URL, per the snippet I provided in this other ticket:
    https://wordpress.org/support/topic/confirmation-page-showing-in-wrong-language/#post-11242488

    I’m pretty sure it’ll be the same for the Donation History page as well, you’ll want to direct your donors to the history page of their language.

    I will test with WPML in a bit as well, but just wanted to share that first bit of progress first.

    Thanks!

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt

    Thanks for your work! I can confirm that setting WPML to force loading .mo doesn’t solve the problem. In string translation I have “translated” the success page ID into the ones in German.. didn’t help either.
    Thanks for that new info with the code snippet. I will try this.. where should I place the code (I’m definitely not a coder) that you posted?
    Thanks, Pascal

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    If you need guidance implementing custom PHP functions on your website, we have this guide here: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    Thanks!

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt

    I have tried using your PHP snippet according to your guide. Unfortunately absolutely nothing happened … how shall we proceed now.. should I still use the option “You requested I reach out to you here”? Are you checking with WPML anyways? Please advice

    Thank you, Pascal

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Here’s what I need to best understand what you’ve done and what is or is not working:

    1. What method of translation swapping are you using in WPML?
    2. The PHP snippet is for redirecting a specific form to a specific donation confirmation page — meaning a German Form to the German Donation Confirmation page (for example). If you aren’t using the duplicate page method of translation switching then this isn’t relevant.

    The core difficulty here is not so much with Give though, as to configuring your multilingual environment correctly for these purposes. have you reached out to WPML for guidance on this at all? What have they suggested overall?

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt. Thanks fpr getting back to me.
    1. I’m using “?lang=de” to swap language
    2. I created a german version of the success page and used your snippet to redirect the german form to the success page (using both ID and URL provided in the snippet)

    I have also reached out to WPML and this was there first idea to try solving the problem:
    1 – In your WordPress Dashboard > WPML > String Translation choose the ‘admin_texts_give_settings’ from the ‘Select strings within domain’ dropdown list.

    2 – Now, enter the id of your translated pages and check the field as translated. I have entered the id of your translated ‘thank you’ page, you can follow the same pattern for the other pages as well. In order to find the id of your translated page, please, try the following:

    2.1 – In your WordPress Dashboard > Pages click to edit the desired page and change to the german language using the language switcher located at the admin top bar.

    2.2 – Now you are able to find the page id of the translated page in the browser’s address bar.

    Since this wasn’t successful as well they now have set up a test server where I will upload a copy of the site where they will also do further tests…

    Thanks again for your precious help!
    Pascal

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Thanks Pascal, keep me posted on what they find. In the meantime, I’ll continue doing some testing as well.

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt
    It’s been a while and unfortunately the problem isn’t solved yet. WPML did a sandbox test and managed to make it work in their environment, but trying to achive the same in my envirement failed. They have made available a duplicator package from their sandbox environment to try to find out what the issue could be.
    You can find this package here: https://drive.google.com/drive/folders/1UbK7YM7w4XRU4dbgCgx4rEo4Cd-5YFwA?usp=sharing_eip&ts=5cae3524

    Would this help to help me? From a WPML point of view (as they made it working) they think their work is done but I’m still confroted with the issue…

    Thanks, Pascal

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Succes Page (and Donor History aso) doesn’t show in selected language’ is closed to new replies.