• Resolved drago239

    (@drago239)


    Hello,

    On multilanguage site some translations for Donations not working. For translations we use WPML plugin. Translations that are not working is translation in {receipt_link} template tag in Donation Receipt, and this is email sent to donor. {payment_method} is also not working. Actually this two string is always in english.

    In {receipt_link} text is View the receipt in your browser » and I tried translate it with Loco Translate and WPML, I also looked it at po and mo files and translations exists. When I click on Preview Email in admin, translation is correct, but in email is always in english.

    I found that this is give_get_view_receipt_link in misc-functions file, I also tried to use double underscore function for translation, there is esc_html__ so I thought maybe this is problem, but with no success.

    In WPML for translations now is default settings, Forms are set to Translatable, Donations are set to Not translatable and this is set by wpml-config.xml file. I suppose that this is correct, because other translations work correct.

    Is there maybe some way to translate this? Does this give_get_view_receipt_link function even recognize language of donation? Does settings of Donations have something to do woth this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @drago239,

    Translations are sort of out of the scope of our support. Our main goal is to get the donations coming to your site.

    As far as I know, WPML creates a separate form for each language that you have active. GiveWP allows you to customize the donation email receipts per form. That way you can manually define the language of the emails in each of your forms according to their language.

    Thread Starter drago239

    (@drago239)

    Hi @mrdaro,

    Thanks for your reply.

    Yes, forms are by each language, and this is ok, also donations can be translated and when it’s translated, problem is still here, but with this is problem that it’s a string in placeholder {receipt_link} and it can’t be modified/translated in donation email receipts per form. In form is just {receipt_link} which is replaced by plugin with string View the receipt in your browser ? wrapped by url. So you can’t change it in email messages.

    As I said before, when I preview email in browser on form, text is following language, so I suppose and I see, function that has this {receipt_link} placeholder doesn’t follow form language. This function is give_get_view_receipt_link in misc-functions file.

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @drago239,

    I just tested this on my site and it’s working.
    I used Loco Translate to translate all the strings in GiveWP but you can also do that in WPML’s String Translation addon.

    Here’s a quick video to demonstrate that it works: https://somup.com/c3nbD1Th7J

    Thread Starter drago239

    (@drago239)

    Hi @mrdaro,

    Thanks for your reply and video. As far as I can see in the video, I did this what you showed in the video. I tried it with WPML and Loco Translate.

    I’m going to look into it further more, maybe I missed something. I’m going to test this also on fresh install.

    Thank you for your effort.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘String Translations in Donor Email’ is closed to new replies.