WPML
Status
Resolved
Reported for
WPML Multilingual for CF7 1.1.0
Resolved in
1.2.1
Related plugin/theme
Contact Form 7
Topic tags
Compatibility

Overview of the issue

The Contact Form 7 plugin allows you to set placeholders in your forms. However, if you are using WPML’s Translate Everything feature, you will find that they are not translated automatically.

This is a known limitation from our Advanced Translation Editor as explained in our documentation. You need to manually select your form placeholders and send them for translation.

Workaround

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


  • Open wp-content/plugins/contact-form-7-multilingual/classes/Placeholders.php file.

  • Look for line 40.

  • Replace:
    			// $addEqualSignOnPlaceholder :: string -> string
    			$addEqualSignOnPlaceholder = Str::replace( 'placeholder "', 'placeholder="' );


  • With:
    			// $addEqualSignOnPlaceholder :: string -> string
    			$addEqualSignOnPlaceholder = Str::replace( 'placeholder "', 'placeholder "' );

All known issues →