PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Field Name (First and Last)

  1. Ciao. Can I translate "first" and "last" in field name? In italian lenguage it is "nome" e "cognome". Which files? What am I to do? Thank you

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  2. Yes, these can be changed using a hook and some custom code you add to your themes functions.php file.

    Here is a post that discusses how to do this:

    http://www.gravityhelp.com/forums/topic/uk-specific-address-help#post-2327

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  3. Thank You Carl. I try now

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  4. I add in function.php but it don't work:

    function add_filter ("gform_name_last", "set_gravityform_name"); set_gravityform_state funzione ($ etichetta) {return "Nome";}

    Help me, please.

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  5. The code in that post does work, if it's not working on your end it is because you did not implement it correctly. Here is the code you should be using.

    Change Last Name to Cognome:

    add_filter("gform_name_last", "set_gravityform_lastname");
    function set_gravityform_lastname($label){
        return "Cognome";
    }

    Change First Name to Nome:

    add_filter("gform_name_first", "set_gravityform_firstname");
    function set_gravityform_firstname($label){
        return "Nome";
    }

    I implemented this on my test site and it worked fine.

    Screenshot of my functions.php file showing the code in place:

    http://grab.by/8Y0h

    Screenshot of my form output showing the change on the form:

    http://grab.by/8Y0k

    The code works, you just need to make sure you are implementing it properly. It goes in your themes functions.php file as custom PHP.

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  6. Thank You Carl. It's all right now. Great!

    Posted 13 years ago on Tuesday February 15, 2011 | Permalink
  7. vezubuhle
    Member

    I am trying to translate the word "Submit" into French "Soumettre" I have looked everywhere in the forums, i have also looked in the POT and the PHP but i can't find the text to edit.

    Since you are doing this in Italian can you please help?

    Posted 13 years ago on Sunday February 20, 2011 | Permalink
  8. The submit button is a Form Setting, it isn't in the POT file because it's user defined. Edit your form, edit the form settings, go to the Advanced tab and change the submit button text to whatever you want.

    See this documentation:

    http://www.gravityhelp.com/documentation/form-settings/

    Posted 13 years ago on Monday February 21, 2011 | Permalink

This topic has been resolved and has been closed to new replies.