Translate error messages in Update profile form

Support MB User Profile Translate error messages in Update profile formResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29282
    YumikomYumikom
    Participant

    Hi,

    I want to translate the validation error message in the password change form output by [mb_user_profile_info].
    I was not able to change it with the LocoTransrate plugin.
    Where can I translate it?

    Error message is below:
    <p id="user_pass-error" class="rwmb-error">This field is required.</p>

    Best regards,
    Yumikom

    #29283
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please refer to this topic to translate the error text https://support.metabox.io/topic/translation-of-form-messages/

    Let me know if it helped.

    #29286
    YumikomYumikom
    Participant

    Hi Long,

    In fact, the password field is a WordPress input field, and it is a field that does not exist in the Metabox Custom Field specified in the MB User Profile.

    All messages must be available for translation, otherwise you will have trouble creating a global site. Is there any way to do this?
    The problem is that the only way to do this is to use Javascript to replace the strings.

    Best regards,

    #29308
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It's the HTML5 validation (client-side validation) and you will get the default message like that. For now, use JavaScript is the only way to translate the error message. You can get more information on this topic https://wordpress.org/support/topic/translation-of-form-error-messages/
    and the documentation https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.