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

כל התקלות הידועות →