Resolved

Resolved in: 1.5.1

Symptoms

Gravity Forms “Checkbox Label” within Consent field is not appearing for translations.

Steps for this error to appear are:

1- Create a Gravity Form
2- Add Consent field
3- Try translating “Checkbox Label” field, either through WPML String Translation or WPML Translation Editor

Workaround

Go to wp-contentpluginsgravityforms-multilingualincgravity-forms-multilingual.class.php and replace the following code:

	
protected function _get_field_keys() {
    if ( ! isset( $this->_field_keys ) ) {
        $this->_field_keys = array(
            'label',
            'adminLabel',
            'description',
            'defaultValue',
            'errorMessage'
        );
    }
    $this->form_fields = apply_filters( 'gform_multilingual_field_keys', $this->_field_keys );

    return $this->form_fields;
}

With:

protected function _get_field_keys() {
    if ( ! isset( $this->_field_keys ) ) {
        $this->_field_keys = array(
            'label',
            'checkboxLabel',
            'adminLabel',
            'description',
            'defaultValue',
            'errorMessage'
        );
    }
    $this->form_fields = apply_filters( 'gform_multilingual_field_keys', $this->_field_keys );

    return $this->form_fields;
}

2 Responses to “Gravity Forms “Checkbox Label” within Consent field is not appearing for translations.”