问题概述
当将 FooEvents for WooCommerce 与 WPML 一起使用时,翻译后的事件会丢失其路线、事件详情文本、选项卡标题、门票文本、感谢文本和门票电子邮件主题,并且会以默认语言显示场地。
临时解决方法
- 前往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>
- 重新翻译事件产品。