탐색 건너뛰기

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using WPML with Formidable Forms PRO and the Formidable Multilingual add-on, the “Previous” button label from the Page Break field is not available for translation. This label does not appear in WPML’s String Translation or in the Formidable “Translate Form” settings.

Workaround

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

Formidable Forms PRO

  • Open …/wp-content/plugins/formidable-pro/classes/models/fields/FrmProFieldBreak.php
  • Look for line 121
  • Replace:
    	public function translatable_strings() {
    		return array( 'name' );
    	}				
    
  • With:
    	public function translatable_strings() {
    		return array( 'name', 'prev_label' );
    	}
    

Formidable Multilingual

  • Open …/wp-content/plugins/formidable-wpml/models/FrmWpmlString.php
  • Look for line 95
  • Replace:
    			case 'break':
    				$keys = array( 'name' );
    				break;			
    
  • With:
    			case 'break':
    				$keys = array( 'name', 'prev_label' );
    				break;
    
  • In the same file, look for line 502
  • Replace:
    				break;
    
  • With:
    				break;
    			case 'break':
    					if ( isset( $field->field_options['prev_label'] ) && $field->field_options['prev_label'] != '' ) {
    						$string_data[ 'field-' . $field->id . '-prev_label' ] = $field->field_options['prev_label'];
    					}
    				break;
    
  • After completing these steps, the “Previous” button label should become translatable in Formidable > Forms > Form Settings > Translate Form.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>