Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Translate Stripe error labels

  • Resolved alex_stoiu



    My website is in Romanian and I am unable to translate the error messages that the users receive when inputting incorrect payment details. I have tried using the Loco Translate plugin and different code snippets, but unfortunately without success.

    I have also contacted Stripe support and the response was that “since WordPress built their integration with Stripe, they’ll be best able to help you with this directly.”

    Can you assist me with getting these error messages localised?

    Thank you!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ben Meredith


    Hi there,

    As far as I’m aware those strings are all internationalised here so that they can be localised:

    What messages are you seeing that need to be internationalised?

    We’re happy to help!

    Thread Starter alex_stoiu



    Thank you for your response.

    The strings in the link above are not the ones that show up when inputting incorrect credit card information on my site.

    Some of the strings that need translating are:
    “Please enter the name of the credit card account holder”
    “Please enter a name of your credit card account holder”
    “Your card number is incomplete”
    “Your card number is invalid”
    “Your card’s expiration date is incomplete”
    “Your card’s security code is incomplete”

    Thank you!

    Thread Starter alex_stoiu


    Any assistance in regards to this matter would be greatly appreciated. Thank you!

    Thread Starter alex_stoiu


    Please note that you can find the form on the following page:

    Thank you!

    Plugin Contributor Ben Meredith


    Hi @alex_stoiu

    Apologies for the slow turnaround here. I just looked into this deeply and I’m not able to reproduce that exact error message on a test install that I have.

    The error message I get on your site is
    Please enter the name of the credit card account holder

    But the one I get on my test site is
    Please enter a name of your credit card account holder.

    The string in my error message is internationalised here:

    The string in your error message does not appear anywhere in our codebase, so I have to assume that’s coming either from Stripe itself or being generated by custom code.

    Are you using the latest version of GiveWP?

    I’m happy to keep digging here, but until I am able to replicate a problem, I’ll have trouble fixing it.

    Thread Starter alex_stoiu


    Hello, thank you very much for your reply.

    I have Give version 2.6.3 installed.

    The ‘process-donation.php’ file I have on site seems to be the same as the one in the link you provided above.

    I’m not sure why there would be a difference between my install and yours.

    Please let me know you need any other information from my side.

    Thank you greatly!

    Thread Starter alex_stoiu


    Hello again,

    I just got off the phone with a customer support representative from Stripe and this was his follow-up email:

    “Hi there,

    It’s M. again from Stripe Support. It was a pleasure speaking with you earlier and thank you for giving me the chance to assist you.

    As discussed in our call, the checkout language can be customize in your integration. You can see the supported languages in the URL below.

    Since you’re using a third party for your checkout, it would be best to consult your platform for them to help you edit your current integration. As much as we would like to help you correct this, our capability is limited due to the fact that your integration is done by a third party. They have design your workflow and it would be better to get in touch with them to see how it is set up. Here’s their support page:

    Should you have any other concerns in the future, just don’t hesitate to get in touch again and I’ll be happy to help. Have a good one!

    All the best,

    It’s been more than 2 weeks since I am trying to have this issue resolved 🙁

    Any ideas or help in regards to this issue would be greatly appeciated.

    Thank you!

    Plugin Support Matheus Martins


    Hi @alex_stoiu,

    That’s really strange because we cannot find those strings on GiveWP. In this case, you can use our translation snippet, which will allow you to change the text on your site. You can check it here:

    You’ll need to make sure that the plugin applying those strings is GiveWP to make it work correctly. Otherwise, you’ll need to change the plugin domain for the variable $domain.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter alex_stoiu


    Hello @matheusfd ,

    Thank you very much for your reply.

    Unfortunately adding that code snippet still didn’t solve this issue.

    Here is what some of the error messages look like in Developer Tools:

    <div class="give_notices give_errors">
    	<div class="give_error give_notice" id="give_error_empty_card_name" data-dismissible="1" data-dismiss-interval="5000">
    		<p><strong>Error</strong>: Please enter the name of the credit card account holder.</p>
    <div id="give-stripe-payment-errors-15719-1">
    	<div class="give_errors">
    		<p class="give_error">Your card number is incomplete.</p>

    Any further assistance or troubleshooting ideas are greatly appreciated.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Translate Stripe error labels’ is closed to new replies.