نظرة عامة على المشكلة
منذ الإصدار 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>