탐색 건너뛰기

Waiting for author

Topic Tags: Compatibility

Overview of the issue

The [MC4WP] – Mailchimp for WordPress integration for WooCommerce does not display the translated checkout checkbox label on the front end, even though the translation appears correctly in WPML’s String Translation.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/mailchimp-for-wp/includes/integrations/class-integration.php file.
  • Look for line 168.
  • Replace:
        public function get_label_text()
        {
            $integration = $this;
            $label       = $this->options['label'];
    
            if (empty($label)) {
                $default_options = $this->get_default_options();
                $label           = $default_options['label'];
            }
            
  • With:
        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' );
            }
            

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>