نظرة عامة على المشكلة
لا يعرض تكامل [MC4WP] – Mailchimp for WordPress لـ WooCommerce تسمية مربع اختيار إتمام الشراء المترجمة في الواجهة الأمامية، على الرغم من ظهور الترجمة بشكل صحيح في ترجمة النصوص في WPML.
حل بديل مؤقت
تم إصلاح هذه المشكلة. يحل التحديث إلى أحدث إصدار المشكلة على موقعك، لذا لا تحتاج إلى هذا الحل البديل المؤقت إلا إذا لم تتمكن من التحديث بعد.
يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.
- افتح الملف …/wp-content/plugins/mailchimp-for-wp/includes/integrations/class-integration.php.
- ابحث عن السطر 168.
- استبدل:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = $default_options['label']; } - بـ:
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' ); }