Descripció
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.
Ajudeu-nos a provar aquesta extensió i feu-nos saber si alguna cosa no funciona com cal.
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
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
– The current locale.
Warning: Since this is a potentially slow/expensive process involving the loading of multiple translation files, it’s recommended to use it
sparingly and only for specific domains.
Impliqueu-vos
El desenvolupament actiu està tenint lloc a GitHub.
Si voleu implicar-vos, feu una ullada a les incidències obertes i uniu-vos a #core-i18n a Slack. Si encara no teniu un compte de Slack, podeu registrar-vos a make.wordpress.org/chat/.
Captures
Ressenyes
Col·laboradors i desenvolupadors
«Preferred Languages» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.
Col·laboradors“Preferred Languages” s'ha traduït a 31 configuracions regionals. Gràcies als traductos per les seves aportacions.
Tradueix “Preferred Languages” a la teva llengua.
Interessats en el desenvolupament?
Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.
Registre de canvis
Per consultar el registre de canvis de l’extensió, aneu al repositori de GitHub.