WPML
状态
已解决
报告针对
Gravity Forms Multilingual 1.6.0
相关插件/主题
Gravity Forms

问题概述

设置 Gravity Forms 表单时,用户可以选择为 Schedule PendingLogin Required 添加自定义消息。当您翻译表单时,您将无法翻译这些字符串。

临时解决方法

我们正在努力永久修复此问题。在此期间,您可以按照以下步骤解决该问题:


  1. 备份您的网站文件和数据库。

  2. 修改 gravityforms-multilingual/inc/gravity-forms-multilingual.class.php 第 196 – 210 行,从
    protected function get_form_keys() {
    		if ( ! isset( $this->_form_keys ) ) {
    			$this->_form_keys = [
    				'limitEntriesMessage',
    				'scheduleMessage',
    				'postTitleTemplate',
    				'postContentTemplate',
    				'button-imageUrl',
    				'lastPageButton-text',
    				'lastPageButton-imageUrl',
    			];
    		}
    		return apply_filters( 'gform_multilingual_form_keys', $this->_form_keys );
    	}

    改为

    protected function get_form_keys() {
    		if ( ! isset( $this->_form_keys ) ) {
    			$this->_form_keys = [
    				'limitEntriesMessage',
    				'scheduleMessage',
    				'requireLoginMessage',
    				'schedulePendingMessage',
    				'postTitleTemplate',
    				'postContentTemplate',
    				'button-imageUrl',
    				'lastPageButton-text',
    				'lastPageButton-imageUrl',
    			];
    		}
    		return apply_filters( 'gform_multilingual_form_keys', $this->_form_keys );
    	}


  3. 然后,您可以对表单进行细微修改,并重新发送以进行翻译。

所有已知问题 →