WPML
Trạng thái
Đã giải quyết
Đã giải quyết trong
1.5.1

Tổng quan về lỗi

“Checkbox Label” của Gravity Forms trong trường Consent không hiển thị cho các bản dịch.

Các bước để lỗi này xuất hiện là:

1- Tạo một Gravity Form

2- Thêm trường Consent

3- Thử dịch trường “Checkbox Label”, thông qua WPML Dịch Chuỗi hoặc Trình biên tập dịch thuật WPML

Giải pháp tạm thời

Truy cập wp-content\plugins\gravityforms-multilingual\inc\gravity-forms-multilingual.class.php và thay thế đoạn mã sau:

	
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;
}

Bằng:
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;
}

Tất cả các lỗi đã ghi nhận →