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
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
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
Thank You Carl. I try now
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.
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:
Screenshot of my form output showing the change on the form:
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.
Thank You Carl. It's all right now. Great!
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?
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: