Tổng quan về sự cố
Từ phiên bản 4.15.3, Give – Donation Plugin không còn bao gồm tệp wpml-config.xml nữa. Do đó:
- WPML không làm cho các biểu mẫu quyên góp có thể dịch được.
- Các văn bản email dành cho người quyên góp, chẳng hạn như biên lai quyên góp, không có trong Dịch chuỗi, vì vậy người quyên góp sẽ nhận được mọi email bằng ngôn ngữ mặc định.
Giải pháp tạm thời
Cho đến khi GiveWP cung cấp lại tệp wpml-config.xml, hãy thêm cấu hình theo cách thủ công:
- Truy cập WPMLCài đặt và mở tab Cấu hình XML tùy chỉnh.
- Dán mã dưới đây và nhấp vào Lưu.
- Truy cập WPMLDịch chuỗi và dịch các văn bản trong ngữ cảnh 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>