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.

Hebrew translation

  1. Hi
    Can you help me to understand how do i build a Hebrew form?
    Do you have a Hebrew translation for this plug?
    Is there a place where I can translate it to Hebrew?

    Posted 12 years ago on Monday November 28, 2011 | Permalink
  2. We do not currently have a Hebrew translation for Gravity Forms.

    You have two options.

    1) Localize Gravity Forms

    You can localize Gravity Forms just like WordPress and any other plugin. Here is a tutorial on how to localize a WordPress plugin:

    http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

    Localizing a plugin localizes the admin and any sub-labels that are part of the form.

    2) If you don't need to localize the entire plugin and just want to build a form that appears in Hebrew then you would enter the data in Hebrew. The form name, field names, etc.

    You could then localize individual form field sub-labels using PHP you would add to your themes functions.php. These sub-label filters are documented here:

    http://www.gravityhelp.com/documentation/page/Developer_Docs#Sublabels

    Posted 12 years ago on Monday November 28, 2011 | Permalink
  3. danielpettifer
    Member

    Hello, I have a multilingual site and thus have forms in multiple languages. Localising the entire plugin is not an option for me and I need to specifically target the form labels I need to change, as specified in your link above. Unfortunately I am struggling to understand your example. Please could you give me a more..understandable example of, for instance..how to change the name and last name labels in form ID 2........and where exactly do I need to implement the code?

    Posted 12 years ago on Saturday December 10, 2011 | Permalink
  4. To change sub-labels for the first/last name, you may use the Gravity Forms hooks gform_name_first and gform_name_last. Below is sample code to do this. You would place the sample code in your theme's functions.php file.

    //modify first/last name sublabels
    add_filter("gform_name_first", "change_name_first", 10, 2);
    function change_name_first($label, $form_id){
    	//replace the first name label on form id 10
    	if ($form_id == 10)
    	{
    		return "This is my new label for first name.";
    	}
    	else
    	{
    		//return original label for other forms
    		return $label;
    	}
    }
    add_filter("gform_name_last", "change_name_last", 10, 2);
    function change_name_last($label, $form_id){
        //replace the last name label on form id 10
        if ($form_id == 10)
     	{
        	return "This is my new label for last name";
    	}
    	else
    	{
    		//return original label for other forms
    		return $label;
    	}
    }
    Posted 12 years ago on Monday January 16, 2012 | Permalink

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