Reply To: Contact Form Translation

#355
livemesh
Keymaster

Any translation issues reported with PHP was fixed in the last update. At present, translation for Javascript code is not implemented yet (only the contact form has couple of strings there). Can you pls take a look at {enticing theme folder}/js/main.js and look for the string and change accordingly? Will take care of this in the next update.

        messages:{
            contact_name:{
                required:"Please provide your name",
                minlength:"Your name must consist of at least 5 characters"
            },
            contact_email:"Please provide a valid email address",
            contact_url:"Please provide a valid URL",
            contact_phone:{
                minlength:"Minimum 5 characters required"
            },
            human_check:"The input the correct value for the equation above",
            message:{
                required:"Please input the message",
                minlength:"Your message must be at least 15 characters long"
            }
        },
        errorClass:'form-error',
        submitHandler:function (theForm) {
            $.post(
                theForm.action,
                $(theForm).serialize(),
                function (response) {
                    $("#feedback").html("<strong>Your message has been sent. Thanks!</strong>");
                });

        }

BTW, the contact form in the latest update has been enhanced with new fields and validation checks. Pls have a look if you have not done so already.