- Trạng thái
- Đã được giải quyết bởi nhà phát triển
- Plugin/giao diện liên quan
- MC4WP: Mailchimp for WordPress
- Thẻ chủ đề
- Compatibility
Tổng quan về lỗi
Tiện ích tích hợp [MC4WP] – Mailchimp for WordPress cho WooCommerce không hiển thị nhãn hộp kiểm thanh toán đã dịch trên giao diện người dùng, mặc dù bản dịch hiển thị chính xác trong Dịch chuỗi của WPML.
Giải pháp tạm thời
Vui lòng đảm bảo sao lưu toàn bộ trang web của bạn trước khi tiếp tục.
- Mở tệp …/wp-content/plugins/mailchimp-for-wp/includes/integrations/class-integration.php.
- Tìm dòng 168.
- Thay thế:
public function get_label_text() { $integration = $this; $label = $this->options['label']; if (empty($label)) { $default_options = $this->get_default_options(); $label = $default_options['label']; }
- Bằng:
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' ); }