تخطي إلى المحتوى تخطي إلى الشريط الجانبي

Open

Reported for: WPForms Multilingual 0.5.0

Topic Tags: Compatibility

Overview of the issue

When using WPForms Survey and Polls with WPML, you might experience the following issue: some strings are not available for translation. This can affect the Net Promoter field labels and the Page Break progress bar text.

Workaround

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

  • Add the following code to your theme’s functions.php file.
    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;
    } );
            
  • Edit the original form and save it again.
  • Update the translation.

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو تقديم تذكرة.

يمكنك استخدام هذه الوسوم:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>