WPML
الحالة
محلولة بواسطة المطور
الإضافة/القالب ذو الصلة
MC4WP: Mailchimp for WordPress
وسوم الموضوع
Compatibility

نظرة عامة على المشكلة

لا يعرض تكامل [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' );
            }
            

جميع المشاكل المعروفة →