• Resolved Nos2013

    (@nos2013)


    Hi,

    I’m french and i would like to translate the parsley validation form because all fields and message are translated except errors messages linked to required fields.
    I’m using the free version of your plugin.
    I added the “fr.js” from the i18n folder of parsley but i received an error to use it. The error is on line 65 from “jquery.usp.core.js” file, it say that this following function is undefined : $.listen(‘parsley:field:validate’, function().

    Sorry for my bad english,

    Thank you,

    Nos2013

    https://www.ads-software.com/plugins/user-submitted-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Starr

    (@specialk)

    I’m not an expert with Parsley, but it sounds like the listen function may not be defined.. are you sure it’s included on the page?

    Thread Starter Nos2013

    (@nos2013)

    I found my problem. If someone want translation from parsley form validation, you need to add the extra js translation from https://github.com/guillaumepotier/Parsley.js/tree/master/src/i18n
    Then, you need to include parsley.js and your extra translation js on the header of your wordpress site. Finally, you need to set up your language with :
    window.ParsleyValidator.setLocale(‘fr’); //for example.

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for the follow-up on this thread, glad to hear you got it sorted out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate Parsley Validation Form’ is closed to new replies.