Resolved
Resolved in: 1.5.1
Overview of the issue
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; }
I ran into this problem recently. When will this solution be added into the WPML Gravity Forms add-on?
Next version of gravityforms-multilingual will have this included.
It is waiting for release.