• Resolved tomasz_bednarek

    (@tomasz_bednarek)


    Hi,

    I would like to change language of text in alert when an user put wrong email address but can’t find such a line in weforms.pot

    |Please enter an email address.|

    Where can I find this line in .js .php ?

    Please help, and thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @tomasz_bednarek,

    The validation message you see is coming from HTML5 validation. Currently we don’t have any in built settings to set custom validation messages or localization support.

    But you can customize it for your need by altering the code in this file wp-content/plugins/weforms/includes/fields/class-field-email.php

    Here is an example to get you started.

    I will definitely try to bring some built in support for this in future updates.

    Let me know if you have any other queries.

    Thanks

    Thread Starter tomasz_bednarek

    (@tomasz_bednarek)

    Thanks a lot Rafsun.

    Now it’s clear that I was looking for language string external to weforms.
    I thought it had to be somewhere in your code, but I forgot it was due to my browser set in english. ??
    Anyway thank you for a solution which I may use. It is nice you are considering putting it into next releases as browser default messages are out of my easy grasp.

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change alert text – language if email not properly written’ is closed to new replies.