סקירת התקלה
החל מגרסה 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>