تم حل هذا الموضوع. هنا وصف للمشكلة والحل.
Problem:
The client is using a custom language switcher in a shortcode and needs to output the language code (e.g., FR, EN) instead of the full language name. They could not find the option to do this in the custom code.
Solution:
We recommend navigating to WPML > Languages > Edit Languages, where you can change the language name from its full form (e.g., 'French') to its code (e.g., 'FR'). You should apply this change for each language accordingly.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
هنا منتدى الدعم الفني لـ WPML - ملحق WordPress متعدد اللغات.
يمكن للجميع قراءة المواضيع، ولكن عملاء WPML فقط هم من يمكنهم النشر هنا. يقوم فريق WPML بالرد على موضوعات المنتدى على مدار 6 أيام في الأسبوع، 22 ساعة في اليوم.
يحتوي هذا الموضوع 1 ردود ، لديه 2أصوات.
آخر تحديث بواسطة قبل 5 أشهر، 3 أسابيع.
يساعده: Mihai Apetrei.