How can I localize the 'Enter email' and 'Confirm email' descriptions below each field for the email Advanced Field?
How can I localize the 'Enter email' and 'Confirm email' descriptions below each field for the email Advanced Field?
By creating a language translation of the POT file that is in the /languages folder for the appropriate language.
They can also be changed individually using filters if you don't want to mess with a PO translation.
The filters are:
gform_email
gform_email_confirm
An example of how to use one is:
<?php
add_filter("gform_email", "change_email", 10, 2);
function change_email($label, $form_id){
return "My Custom Sublabel";
}
?>
This code would go in your themes functions.php file.
Super, thanks! Are all these filter documented somewhere, by any chance? I've seen a list in another post, but don't recall seeing these filters.
They will be in when the final 1.5 version is released very soon.
Trying to find same filter / hook for the File and Caption fields on post image field type.
Is the updated documentation you mention for the now released 1.5 going to be something close(r) to the WP Codex where all functions, filters, hooks, etc are listed and described?
Update
Very much so - http://www.gravityhelp.com/documentation/page/Gform_postimage_file
Great job guys!
Yes, it is similar to the WP Codex. All filters/hooks are listed and described.