문제 개요
WooCommerce용 [MC4WP] – Mailchimp for WordPress 통합은 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' ); }