- ステータス
- 開発者により解決済み
- 関連するプラグイン/テーマ
- MC4WP: Mailchimp for WordPress
- トピックタグ
- Compatibility
問題の概要
WPMLの文字列翻訳で翻訳が正しく表示されているにもかかわらず、WooCommerce用の[MC4WP] – Mailchimp for WordPressインテグレーションでは、フロントエンドで翻訳されたチェックアウトのチェックボックスラベルが表示されません。
回避策
続行する前に、サイトの完全なバックアップを必ず作成してください。
- …/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' ); }