问题概述
如果您使用的是 Flatsome 主题,在尝试翻译添加到 WooCommerce 产品的自定义选项卡时,您可能会遇到困难。
临时解决方法
- 前往WPML设置自定义 XML 配置,添加以下 XML 并保存:
XML
<wpml-config> <custom-fields> <custom-field action="translate">wc_productdata_options</custom-field> </custom-fields> <custom-fields-texts> <key name="wc_productdata_options"> <key name="*"> <key name="*" /> </key> </key> </custom-fields-texts> </wpml-config>
- 编辑原始产品并保存。
- 再次翻译该产品。自定义选项卡标题、选项卡内容和“新建”气泡文本现在已包含在翻译中。