Preferred Languages

Descrição

Graças aos pacotes de idioma, alterar o idioma do seu site é mais fácil do que nunca.
No entanto, em alguns casos apenas um Locale não é suficiente. Quando o WordPress não encontra uma tradução para o Locale activo, recorre às strings originais em inglês.
Isto é uma má experiência para muitos utilizadores que não falam inglês.

Este projecto pretende alterar isto, permitindo aos utilizadores escolher múltiplos idiomas para o seu WordPress.
Deste modo é possível definir uma cadeia de alternativas em que o WordPress tenta carregar as traduções na sua ordem preferida.

Por favor ajude-nos a testar este plugin e informe-nos caso alguma coisa não funcionar como esperado.

Atalhos do teclado

  • Seta para cima: Move o Locale seleccionado uma posição para cima.
  • Seta para baixo: Move o Locale seleccionado uma posição para baixo.
  • Home: Selecciona o primeiro Locale da lista.
  • End: Selecciona o último Locale da lista.
  • Backspace/Delete: Remove da lista o Locale seleccionado.
  • Alt+A: Adiciona à lista o Locale escolhido no selector.

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 – O text domain
  3. $current_locale – O Locale actual.

Participe

O desenvolvimento decorre no GitHub.

Se quiser envolver-se, consulte os issues abertos e junte-se ao canal #core-i18n do Slack. Se ainda não tiver uma conta no Slack, registe-se em make.wordpress.org/chat/.

Ecrãs

Avaliações

25 Junho, 2026
Preferred Languages is a well-designed and highly practical plugin for multilingual WordPress environments. It allows users to set multiple language preferences and creates a smart fallback system when translations are incomplete. The plugin improves the overall user experience by reducing untranslated content and seamlessly merging available language packs. Easy to configure, lightweight, and a valuable addition for websites targeting international audiences.
25 Maio, 2026
This is an excellent and very useful plugin. Must have!
18 Janeiro, 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.
Ler todas as 20 avaliações

Contribuidores e programadores

“Preferred Languages” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“Preferred Languages” foi traduzido para 34 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Preferred Languages” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

Para consultar o registo de alterações do plugin, visite o repositório no GitHub.