問題の概要
WPMLでFooEvents for WooCommerceを使用すると、翻訳されたイベントの道順、イベント詳細テキスト、タブタイトル、チケットテキスト、サンキューテキスト、チケットメールの件名が失われ、会場がデフォルト言語で表示されます。
回避策
- WPML設定カスタム XML 設定に移動し、以下のXMLを追加して保存します:
XML
<wpml-config> <custom-fields> <custom-field action="translate">WooCommerceEventsLocation</custom-field> <custom-field action="translate">WooCommerceEventsDirections</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsText</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsOverride</custom-field> <custom-field action="translate">WooCommerceEventsTicketText</custom-field> <custom-field action="translate">WooCommerceEventsThankYouText</custom-field> <custom-field action="translate">WooCommerceEventsEmailSubjectSingle</custom-field> </custom-fields> </wpml-config>
- イベント商品を再度翻訳します。