نظرة عامة على المشكلة
عند استخدام FooEvents for WooCommerce مع WPML، يفقد الحدث المترجم اتجاهاته، ونص تفاصيل الحدث، وعنوان علامة التبويب، ونص التذكرة، ونص الشكر، وموضوع البريد الإلكتروني للتذكرة، ويعرض مكان الحدث باللغة الافتراضية.
حل بديل مؤقت
- اذهب إلى WPMLإعداداتتكوين XML مخصص، وأضف XML التالي واحفظ:
XML
<wpml-config> <custom-fields> <custom-field action="translate">WooCommerceEventsLocation</custom-field> <custom-field action="translate">WooCommerceEventsDirections</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsText</custom-field> <custom-field action="translate">WooCommerceEventsEventDetailsOverride</custom-field> <custom-field action="translate">WooCommerceEventsTicketText</custom-field> <custom-field action="translate">WooCommerceEventsThankYouText</custom-field> <custom-field action="translate">WooCommerceEventsEmailSubjectSingle</custom-field> </custom-fields> </wpml-config>
- ترجم منتجات الحدث مرة أخرى.