Preferred Languages

Descripció

Gràcies als paquets d’idioma és més fàcil que mai canviar l’idioma principal del vostre lloc web.
No obstant això, en alguns casos no n’hi ha prou amb una sola configuració local. Quan el WordPress no troba una traducció per a la configuració regional activa, torna a les cadenes originals en anglès.
Aquesta és una mala experiència d’usuari per a aquelles persones que no parlen anglès.

Aquest projecte té com a objectiu canviar això permetent que els usuaris triïn diversos idiomes per mostrar al WordPress.
D’aquesta manera, podeu establir una mena de «cadena alternativa» on el WordPress intenti carregar traduccions en l’ordre que preferiu.

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:

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

Note: On WordPress 6.5 and newer, this functionality is enabled by default.
On older versions of WordPress, this is a potentially slow/expensive process,
so 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

  • La nova secció d'idiomes a «Opcions» -> «General»
  • La nova secció d'idiomes al vostre perfil d'usuari.

Ressenyes

18 de gener de 2023 1 resposta
I honestly think that this should be a core feature of WP. The only thing wrong I notice is that when you are looking at the front end... The language of the admin bar changes into the site language but that's the only issue I have with this plugin at the time of writing. For the rest, it's a dream plugin.
20 de març de 2021
a very cool plugin. this is a truely great plugin, You can use it for many purposes. It works great right out of the box, but is very easy to customize to suit your needs. my current use-case: i use this plugin to power up my page - which has visitors from several european Countries. I’m using this plugin to manage a small job-site: And i have to say: I love this plugin. And if it comes to support: it is so awesome to see that all is documented so well and good: You can do so much with this plugin: if you need to customize it towards your special use-case: just look at the documentation (and again have a look at the docs) Read those instructions – they are written so well, people. There’s a lot of detail there and alltogehter i have to say: it’s super well documented! Amazing job: i love this plugin, from me 5 stars - (i would give even more if it would be possible) keep up this awesome and outstanding job - it rocks!!!
17 de gener de 2022
I think this should be in Core for websites with several possible languages. I like it very much! Specially I appreciate that each user can also choose languages from the selected languages. (I am developing a translation plugin for my own needs to use Google Translate to translate posts/pages and complement it.)
26 de agost de 2020
An indispensable plugin for sites that use a language with formal/non-formal variant. This should become a WordPress core functionality!
Llegiu totes les 17 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 traductors 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.