• Resolved Scorppio

    (@scorppio)


    Hello there!

    CF7 is really the best contact plugin. But I do hace a problem I can’t fix on my own, so I kindly ask for help. I know there’s the answer in this Support Forum for sure but I’ve looked some pages already.

    This is my question: even I’ve my contact form is in Spanish, I still see default content inside fiels in English. Ex: ‘Name’ , ‘Message…’ and I can’t find where to translate it. (I’ve already looked into the Spanish mo file).

    I would appreciate any help!

    http://wordpress.org/plugins/contact-form-7/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Scorppio,
    when you add a new contact form you can select the language and that should create a basic form with all the fields and text in that language.
    If you start copying the Contact Form 1 instead, you want to translate manually all the text and field of that sample form (e.g. change <p>Your Name (required)<br />[text* your-name]</p> into <p>Nome (necesario)<br />[text* your-name]</p>).
    Hope this solves your problem

    Thread Starter Scorppio

    (@scorppio)

    Hi lucabarbetti,

    Thanks for your answer. But I may have not explained myself well.

    Message in Spanish es ‘Mensaje’, ok? I have created a contact form already in Spanish so I already have <p>Mensaje
    [textarea your-message]</p>.
    But, when you look at the contact form into the webpage as a user, you see “Mensaje:” (which is correct) but inside the text area there’s a “Message…”. This “Message…” is what I would like to translate.

    The same happens for text field “Nombre:” where inside the text field there’s a “Name”, for example.

    They’re not an imput from me. Do I explain myself better now? Hope so because I just can’t find where to translate this.

    Hi,
    I think, if I have understood correctly your problem, those words might be the default values that you can set when you create those fields. When you create a field like text-area or text-field, you can set a default value that will appear on the frontend using the “Default value (optionl)” field, and when you do this your shortcode become something like [textarea* message “Message”] and [text* name “Name”] where “Message” and “Name” represent the default values that appears in the corresponding fields of the form on the frontend.
    Check your shortcodes and, if this is your problem, replace all the default values with the corresponding translated words(e.g. “Message” with “Mensaje”).
    Cheers

    P.S. I use Contact Form 7 3.5.2 and I don’t see this happening unless I set the default values, otherwise all the fields appear empty in contact form.

    Thread Starter Scorppio

    (@scorppio)

    Thanks again for your message lucabarbetti! But it’s not exactly what I’m asking :S

    I’ll give you an example: http://contactform7.com/contact/
    1. A default value is a text inside a field that in order to not see it anymore, you must delete it manually.
    2. On the other hand, what I’m asking to translate is what you see in the contact form of the above URL. A value inside a field that disappears as soon as the users write anything.

    Hope you can help me with this 😛

    Hey Scorppio, this is getting hilarious and somewhat embarrassing for me, I gave you two answers and none of them was helpful!
    Alright, let’s try to do better this time… I checked your example and, with Contact Form 7 ver. 3.5.2 and latest WP, all the fields that I create appear empty, which means without those values that disappear when a user would start typing in.
    You are correct, those are not default values but “watermarks”, as Takayuki Miyoshi call them, and those depend on javascript but you should be able to ‘translate’ them whith something like this:

    <p>Mensaje<br />
    [textarea* textarea-38 watermark "Mensaje"]<p>

    .
    Hope this does it!
    Cheers

    P.S. Now I wonder why I don’t get automatically those watermarks in my setup… not that I need or like them but, if you get them automatically and I don’t, there might be something not working as expected. Gotta check this out.

    Thread Starter Scorppio

    (@scorppio)

    Hi Luca!

    Many thanks for this last message, you got it! 🙂

    OK, here’s what happens:
    – This following code works perfectly:

    <p>Name<br />
    [text* text-38 watermark "Tu nombre"]<p>

    – However, the following code wouldn’t work (I don’t know why):

    <p>Name<br />
    [text* your-name watermark "Tu nombre"]<p>

    So I just create new fields to replace the default ones and that’s it!

    my pleasure, glad to know you finally got it working. 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translate certain fields’ is closed to new replies.