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' );
            }
            

ปัญหาที่ทราบแล้วทั้งหมด →