Bỏ qua điều hướng

Open

Reported for: Gravity Forms Multilingual 1.8.2

Topic Tags: Compatibility

Overview of the issue

When using WPML with Gravity Forms, the Image Choice and Multiple Choice fields are not translated correctly. Choices’ labels and values from the Multiple Choice field are not available in the translation editor, and the “Image Choice” field may still appear in the original language even after translation.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/gravityforms-multilingual/inc/gfml-tm-api.class.php file.
  • Look for line 301.
  • Replace:
    case 'select':
    case 'multiselect':
    case 'checkbox':
    
  • With:
    case 'select':
    case 'multiselect':
    case 'checkbox':
    case 'image_choice':	// WPML workaround for compsupp-7756
    case 'multi_choice':
    
  • Then, look for line 523.
  • Replace:
    private function has_option_input_field_post_custom( GF_Field $field ) {
    	switch ( $field->inputType ) {
    		case 'checkbox':
    
  • With:
    private function has_option_input_field_post_custom( GF_Field $field ) {
    	switch ( $field->inputType ) {
    		case 'checkbox':
    		case 'image_choice':	// WPML workaround for compsupp-7756
    		case 'multi_choice':
    
    
  • Go to the Gravity Forms edit screen, make a minor modification to the image choice field (e.g., change a label slightly), and save the form.
  • Go to WPML > Translation Management page and send the form to translation
  • Translate the form.

2 phản hồi đẾN “Gravity Forms - Image Choice And Multiple Choice Fields Are Not Translated”

    • Hello Mike,
      Our developers are already aware of this issue, and it may be fix in the next GFML release. However, if that’s not the case and the workaround is overwritten, you may need to apply the patch again until a definitive solution is published.
      We will keep this page updated.

Để lại câu trả lời

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

Bạn có thể sử dụng các thẻ này:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>