plugin-icon

إضافة Preferred Languages

لصاحبه Pascal Birchler·
اختيار اللغات لعرض ووردبريس، حسب ترتيب التفضيل المرغوب به.
التقييم
5/5
النسخة
2.4.1
التنصيبات النشطة
2K
آخر تحديث
Nov 28, 2025

Thanks to language packs it’s easier than ever before to change the main language of your site. However, in some cases a single locale is not enough. When WordPress can’t find a translation for the active locale, it falls back to the original English strings. That’s a poor user experience for many non-English speakers.

This feature project aims to change that by letting users choose multiple languages for displaying WordPress in. That way you can set some sort of “fallback chain” where WordPress tries to load translations in your preferred order.

يرجى مساعدتنا في اختبار هذه الإضافة وإخبارنا إذا كان هناك شيء ما لا يعمل كما تعتقد.

Keyboard Shortcuts

  • Arrow Up: Move selected locale one position up.
  • Arrow Down: Move selected locale one position down.
  • Home: Select first locale in the list.
  • End: Select last locale in the list.
  • Backspace/Delete: remove the selected locale from the list.
  • Alt+A: Add the current locale from the dropdown to the list.

Note: the Preferred Languages UI needs to be focused in order for the keyboard shortcuts to work.

Merging Translations

Previously, only the first available translation for a given locale and domain will be loaded. However, when translations are incomplete, some strings might still be displayed in English. That’s a poor user experience as well.

To prevent this, Preferred Languages now automatically merges all incomplete translations in the list.

the preferred_languages_merge_translations filter can be used to opt out of this behavior. It provides three parameters:

  1. $merge – Whether translations should be merged. Defaults to true.
  2. $domain – The text domain
  3. $current_locale – The current locale.

شارك بالمساهمة معنا

التطويرات والتحسينات النشطة تجري على GitHub.

إذا كنت تريد المشاركة ، فراجع فتح تذكرة مشكلة وانضم إلى قناة #core-i18n على Slack. إذا لم يكن لديك حساب Slack حتى الآن ، فيمكنك الاشتراك عبر make.wordpress.org/chat.

مجانيعلى خطة Business
إذا أتممت بالتثبيت، فإنك توافق على شروط خدمة ووردبريس.كوم ووشروط إضافات الأطراف الثالثة.
تم اختباره حتى
WordPress 6.9
تتوفّر هذه الإضافة للتنزيل لتُستخدم في عملية التثبيت لديك.