Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • guayo Friend
    #205050

    Hi!

    I developed a website in spanish. But the contact form field label or placeholders are in english. I can’t find the way to change them.

    How can I do that?

    As you can see in the following image, the submit button and the send me a copy label are in the correct language. But the placeholders aren’t.
    https://docs.google.com/file/d/0B7T960e3eQGQZDV3NTVlT2FuTjA/edit?usp=drivesdk

    Thanks

    pavit Moderator
    #564752

    Hi

    Change placeholder value in this file templatesuberjsscript.js

    // Add Placeholder form contact
    var formContact = $('.contact-form-1');
    if (formContact.length > 0) {
    $('#jform_contact_name', formContact).attr('placeholder','Name');
    $('#jform_contact_email', formContact).attr('placeholder','Mail');
    $('#jform_contact_emailmsg', formContact).attr('placeholder','Subject');
    $('#jform_contact_message', formContact).attr('placeholder','Write your message here');

    guayo Friend
    #564753

    thanks for the quick reply.
    I guess if I want a multilanguage site I need to place a language conditional right there.
    Is that the only way to do it?
    Doesn’t seem a very clean solution, but works for now.
    Thanks

    tom_laan84 Friend
    #573305

    Doesnt this method get overwritten on update? this is totally sucky way of adding language! Why is JA not using normal language strings? totally does not make sense. Would like to hear from JA staff why this is not done the right way….

    tom_laan84 Friend
    #738333

    Doesnt this method get overwritten on update? this is totally sucky way of adding language! Why is JA not using normal language strings? totally does not make sense. Would like to hear from JA staff why this is not done the right way….

    Saguaros Moderator
    #573410

    How do you add these placeholders? as in our demo site, it doesn’t show by default: http://uber.demo.joomlart.com/index.php/joomla-page/other-pages/contact-form

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 4 voices, and was last updated by  tom_laan84 9 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum