• Resolved ensalock

    (@ensalock)


    Hey,
    I am using the plugin loco translate (for german website) and I could change the text of most of the stripe error messages. But at 5 (1 of credit card and 4 of sepa) error messages I have no access with the loco plugin. I can not change the text of those following error messages:

    Credit card:

    The error message comes up when you put in for example 11 / 21 at the second field.

    1

    The english translation is like: the expiry date of your card is in the past.

    SEPA:

    The error message comes up when you put in nothing at the iban-field.

    Bildschirmfoto-2021-12-28-um-16-58-26

    The english translation is like: the iban entered is incomplete.

    The error message comes up when you begin with numbers.

    Bildschirmfoto-2021-12-28-um-17-00-08

    The english translation is like: your iban should start with a two-digit country code.

    The error message comes up when you begin with non supported letters.

    Bildschirmfoto-2021-12-28-um-17-02-18

    The english translation is like: the entered iban is invalid. “ZZ” is not a supported country code.

    The error message comes up when you put in an invalid number.

    Bildschirmfoto-2021-12-28-um-17-03-28

    The english translation is like: the entered iban is invalid.

    So as you can see, those error messages are already translated into german. And I would like to chnage the text of the translation. But those messages are not showing in the loco plugin. So I can not change the text of the translation. I also downloaded and checked the .po-file for german on this site:

    Bildschirmfoto-2021-12-28-um-17-08-41

    But these messages don′t exist there too. I checked every file of the stripe woocommerce plugin (also the .pot-file) and couldn′t find these messages. So, I would like to know where are these error messages coming from and how can I change the text?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support 3 Sons Development – a11n

    (@3sonsdevelopment)

    Hey there,

    It’s quite possible that these error messages are passed directly from the Stripe API. The extension may simply pass along the error message that Stripe gives and doesn’t replace it with its own text. If that’s the case, it would explain why the error messages don’t appear in the extension’s files.

    You might be able to use custom JavaScript to detect these messages and replace them with your own text. That’s a bit outside of what we can help out with. If you’d like someone to do that for you, there are freelance developers at Codeable who would be happy to help out.

    https://woocommerce.com/codeable/

    Let us know if you have any questions.

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘change text of error messages (credit card + sepa)’ is closed to new replies.