问题概述
自 4.15.3 版本起,Give – Donation Plugin不再包含其wpml-config.xml文件。因此:
- WPML 无法使捐款表单可翻译。
- 捐款人电子邮件文本(例如捐款收据)不在字符串翻译中,因此捐款人收到的每封电子邮件均为默认语言。
临时解决方法
在 GiveWP 再次提供其 wpml-config.xml 文件之前,请手动添加配置:
- 前往 WPML设置,然后打开自定义 XML 配置选项卡。
- 粘贴以下代码,然后单击保存。
- 前往 WPML字符串翻译,然后翻译 admin_texts_give_settings 上下文中的文本。
<wpml-config>
<custom-types>
<custom-type translate="1">give_forms</custom-type>
<custom-type translate="0">give_payment</custom-type>
<custom-type translate="0">give_log</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="0">give_log_type</taxonomy>
</taxonomies>
<admin-texts>
<key name="give_settings">
<key name="success_page"/>
<key name="failure_page"/>
<key name="history_page"/>
<key name="global_offline_donation_content"/>
<key name="donation_notification"/>
<key name="donation_receipt"/>
<key name="offline_donation_subject"/>
<key name="global_offline_donation_email"/>
<key name="subscription_notification_subject"/>
<key name="subscription_receipt_message"/>
<key name="subscription_cancelled_subject"/>
<key name="subscription_cancelled_message"/>
<key name="donation-receipt_email_message"/>
<key name="donation-receipt_email_subject"/>
<key name="donation-receipt_email_header"/>
<key name="offline-donation-instruction_email_header"/>
<key name="offline-donation-instruction_email_subject"/>
<key name="offline-donation-instruction_email_message"/>
<key name="donor-register_email_subject"/>
<key name="donor-register_email_header"/>
<key name="donor-register_email_message"/>
<key name="donor-note_email_subject"/>
<key name="donor-note_email_header"/>
<key name="donor-note_email_message"/>
</key>
</admin-texts>
</wpml-config>