Beschreibung
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.
Bitte hilf uns, dieses Plugin zu testen und lass uns wissen, wenn etwas nicht funktioniert, wie es sollte.
Tastenkombinationen
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.
Übersetzungen zusammenführen
By default, 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, the preferred_languages_merge_translations
filter can be used to opt into merging incomplete translations.
It provides three parameters:
$merge
– Whether translations should be merged.$domain
– The text domain$current_locale
– Die aktuelle Sprache (Locale).
Hinweis: Da dies ein potenziell langsamer Prozess ist, welcher das Laden mehrerer Sprachdateien beinhaltet, wird aktuell empfohlen das nur gezielt für bestimmte Text Domains zu aktivieren.
Mitmachen
Die aktive Weiterentwicklung findet statt auf GitHub.
Wenn du mitwirken möchtest, sieh dir die offenen Issues an und tritt dem #core-i18n-Kanal auf Slack bei. Wenn du noch keinen Slack-Account hast, kannst du dich auf make.wordpress.org/chat/ anmelden.
Screenshots
Rezensionen
Mitwirkende & Entwickler
„Preferred Languages“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Preferred Languages“ wurde in 31 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.
Übersetze „Preferred Languages“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
Für den Plugin-Changelog besuche bitte das GitHub Repository.