ภาพรวมของปัญหา
ตั้งแต่เวอร์ชัน 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>