WPML
ステータス
解決済み
報告対象
WPForms Multilingual 0.5.0
解決されたバージョン
WPForms Multilingual 0.5.1
関連するプラグイン/テーマ
WPForms
トピックタグ
Compatibility

問題の概要

WPMLでWPForms Survey and Pollsを使用すると、一部の文字列が翻訳できないという問題が発生する場合があります。これは、Net PromoterフィールドのラベルおよびPage Breakプログレスバーのテキストに影響する可能性があります。

回避策

先に進む前に、サイトの完全なバックアップを必ず作成してください。


  • お使いのテーマのfunctions.phpファイルに以下のコードを追加します。
    add_filter( 'wpml_forms_config_wpforms', function ( array $config ): array {
    	$config['field']['lowest_label'] = [
    		'type'       => 'STRING',
    		'properties' => 'lowest_label',
    	];
    	$config['field']['highest_label'] = [
    		'type'       => 'STRING',
    		'properties' => 'highest_label',
    	];
    
    	$config['field']['progress_text'] = [
    		'type'       => 'STRING',
    		'properties' => 'progress_text',
         ];
    	return $config;
    } );
            


  • 元のフォームを編集し、再度保存します。

  • 翻訳を更新します。

すべての既知の問題 →