Salta la navigazione

Resolved

Reported for: Gravity Forms Multilingual 1.6.0

Overview of the issue

When setting up a Gravity Forms form, users have the option to add custom messages for Schedule Pending and Login Required. When you translate the form, you won’t be able to translate those strings.

Workaround

We’re working on a permanent fix for this issue. In the meantime, you can follow these steps to fix the issue:

  1. Backup your website files and database.
  2. Modify gravityforms-multilingual/inc/gravity-forms-multilingual.class.php Lines 196 – 210From
    protected function get_form_keys() {
    		if ( ! isset( $this->_form_keys ) ) {
    			$this->_form_keys = [
    				'limitEntriesMessage',
    				'scheduleMessage',
    				'postTitleTemplate',
    				'postContentTemplate',
    				'button-imageUrl',
    				'lastPageButton-text',
    				'lastPageButton-imageUrl',
    			];
    		}
    		return apply_filters( 'gform_multilingual_form_keys', $this->_form_keys );
    	}
    

    To

    protected function get_form_keys() {
    		if ( ! isset( $this->_form_keys ) ) {
    			$this->_form_keys = [
    				'limitEntriesMessage',
    				'scheduleMessage',
    				'requireLoginMessage',
    				'schedulePendingMessage',
    				'postTitleTemplate',
    				'postContentTemplate',
    				'button-imageUrl',
    				'lastPageButton-text',
    				'lastPageButton-imageUrl',
    			];
    		}
    		return apply_filters( 'gform_multilingual_form_keys', $this->_form_keys );
    	}
    
    
  3. Then, you can slightly modify the form and re-send it to be translated.