- Status
- Vom Autor gelöst
- Zugehöriges Plugin/Theme
- MC4WP: Mailchimp for WordPress
- Themen-Tags
- Compatibility
Übersicht über das Problem
Die [MC4WP] – Mailchimp for WordPress-Integration für WooCommerce zeigt die übersetzte Beschriftung der Kassen-Checkbox im Frontend nicht an, obwohl die Übersetzung in der String-Übersetzung von WPML korrekt angezeigt wird.
Problemumgehung
Bitte stellen Sie sicher, dass Sie ein vollständiges Website-Backup Ihrer Website haben, bevor Sie fortfahren.
- Öffnen Sie die Datei …/wp-content/plugins/mailchimp-for-wp/includes/integrations/class-integration.php.
- Suchen Sie nach Zeile 168.
- Ersetzen Sie:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = $default_options['label']; }
- Durch:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = __( $default_options['label'], 'mailchimp-for-wp' ); } else { do_action( 'wpml_register_single_string', 'mailchimp-for-wp', 'Checkout Label', $label ); $label = apply_filters( 'wpml_translate_single_string', $label , 'mailchimp-for-wp', 'Checkout Label' ); }