Title: Preferred Languages
Author: Pascal Birchler
Published: <strong>2017 年 10 月 2 日</strong>
Last modified: 2025 年 11 月 28 日

---

搜索插件

![](https://ps.w.org/preferred-languages/assets/icon.svg?rev=3039183)

# Preferred Languages

 作者：[Pascal Birchler](https://profiles.wordpress.org/swissspidy/)

[下载](https://downloads.wordpress.org/plugin/preferred-languages.2.4.1.zip)

 * [详情](https://cn.wordpress.org/plugins/preferred-languages/#description)
 * [评价](https://cn.wordpress.org/plugins/preferred-languages/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/preferred-languages/#developers)

 [支持](https://wordpress.org/support/plugin/preferred-languages/)

## 描述

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.

Please help us test this plugin and let us know if something is not working as you
think it should.

**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.

#### Get Involved

Active development is taking place on [GitHub](https://github.com/swissspidy/preferred-languages).

If you want to get involved, check out [open issues](https://github.com/swissspidy/preferred-languages/issues)
and join the [#core-i18n](https://wordpress.slack.com/messages/core-i18n) channel
on [Slack](https://wordpress.slack.com/). If you don’t have a Slack account yet,
you can sign up at [make.wordpress.org/chat/](https://make.wordpress.org/chat/).

## 屏幕截图

 * [[
 * The new language section in ‘Settings’ -> ‘General’
 * [[
 * The new language section in your user profile.

## 评价

![](https://secure.gravatar.com/avatar/7b1bd96fda82c97c7113e31c49015cca9de6f013c396c1ba161f73e94995f578?
s=60&d=retro&r=g)

### 󠀁[deja de usar solo Es_es y Es_mx, ES_ar…](https://wordpress.org/support/topic/deja-de-usar-solo-es_es-y-es_mx-es_ar/)󠁿

 [evZek](https://profiles.wordpress.org/evzek/) 2023 年 3 月 21 日

Es un plugin, imprescindible en cualquier instalación fuera del inglés.

![](https://secure.gravatar.com/avatar/a556f0c812162ab6f10fc8748912889c4b1135aafaa4452badcf5b733bb1f91d?
s=60&d=retro&r=g)

### 󠀁[Should be in the core!](https://wordpress.org/support/topic/should-be-in-the-core-7/)󠁿

 [David Perez](https://profiles.wordpress.org/davidperez/) 2023 年 2 月 20 日

Awesome plugin!

![](https://secure.gravatar.com/avatar/ea5cf1a9df9bcd651321908528303a454c328977ac49b83465c61e850f4132b4?
s=60&d=retro&r=g)

### 󠀁[Make this a core feature](https://wordpress.org/support/topic/make-this-a-core-feature/)󠁿

 [Pieterjan Deneys](https://profiles.wordpress.org/nekojonez/) 2023 年 1 月 18 日
1 回复

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.

![](https://secure.gravatar.com/avatar/6b2aafcc5499e6eef730bac9ef038ece9726c143ff1d61a0dc020b184fe9e0a2?
s=60&d=retro&r=g)

### 󠀁[awesome-plugin: from me 5 stars (i would give even more if it would be possible)](https://wordpress.org/support/topic/awesome-plugin-from-me-5-stars-i-would-give-even-more-if-it-would-be-possible/)󠁿

 [tangermaroc](https://profiles.wordpress.org/tangermaroc/) 2021 年 3 月 20 日

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!!!

![](https://secure.gravatar.com/avatar/435592ea534e9aace6cfd76d7fc037d298263b5a17329adeb4ad063bc993ac51?
s=60&d=retro&r=g)

### 󠀁[Very necessary in core](https://wordpress.org/support/topic/very-necessary-in-core/)󠁿

 [capbussat](https://profiles.wordpress.org/capbussat/) 2022 年 1 月 17 日

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.)

![](https://secure.gravatar.com/avatar/f26a79a0d33f90d3837d8c8c7f7d225ead53b2b02dd5e6ffa1b35e2bf182f0e3?
s=60&d=retro&r=g)

### 󠀁[Should be in core](https://wordpress.org/support/topic/should-be-in-core-25/)󠁿

 [strarsis](https://profiles.wordpress.org/strarsis/) 2020 年 8 月 26 日

An indispensable plugin for sites that use a language with formal/non-formal variant.
This should become a WordPress core functionality!

 [ 阅读所有20条评价 ](https://wordpress.org/support/plugin/preferred-languages/reviews/)

## 贡献者及开发者

「Preferred Languages」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pascal Birchler ](https://profiles.wordpress.org/swissspidy/)

「Preferred Languages」插件已被翻译至 33 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/preferred-languages/contributors)
为本插件所做的贡献。

[帮助将「Preferred Languages」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/preferred-languages)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/preferred-languages/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/preferred-languages/)，或通过[RSS](https://plugins.trac.wordpress.org/log/preferred-languages/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/preferred-languages/)。

## 更新日志

For the plugin’s changelog, please head over to [the GitHub repository](https://github.com/swissspidy/preferred-languages).

## 额外信息

 *  版本 **2.4.1**
 *  最后更新：**5 月前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.2.24 或更高版本 **
 *  语言
 * [Arabic](https://ar.wordpress.org/plugins/preferred-languages/) 、 [Catalan](https://ca.wordpress.org/plugins/preferred-languages/)、
   [Chinese (Taiwan)](https://tw.wordpress.org/plugins/preferred-languages/) 、 
   [Czech](https://cs.wordpress.org/plugins/preferred-languages/) 、 [Dutch](https://nl.wordpress.org/plugins/preferred-languages/)、
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/preferred-languages/) 、
   [English (Australia)](https://en-au.wordpress.org/plugins/preferred-languages/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/preferred-languages/) 、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/preferred-languages/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/preferred-languages/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/preferred-languages/) 、 [English (US)](https://wordpress.org/plugins/preferred-languages/)、
   [French (Belgium)](https://fr-be.wordpress.org/plugins/preferred-languages/) 、
   [French (Canada)](https://fr-ca.wordpress.org/plugins/preferred-languages/) 、
   [French (France)](https://fr.wordpress.org/plugins/preferred-languages/) 、 [German](https://de.wordpress.org/plugins/preferred-languages/)、
   [German (Switzerland)](https://de-ch.wordpress.org/plugins/preferred-languages/)、
   [Italian](https://it.wordpress.org/plugins/preferred-languages/) 、 [Japanese](https://ja.wordpress.org/plugins/preferred-languages/)、
   [Persian](https://fa.wordpress.org/plugins/preferred-languages/) 、 [Portuguese (Brazil)](https://br.wordpress.org/plugins/preferred-languages/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/preferred-languages/)、
   [Romanian](https://ro.wordpress.org/plugins/preferred-languages/) 、 [Russian](https://ru.wordpress.org/plugins/preferred-languages/)、
   [Spanish (Argentina)](https://es-ar.wordpress.org/plugins/preferred-languages/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/preferred-languages/) 、 [Spanish (Colombia)](https://es-co.wordpress.org/plugins/preferred-languages/)、
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/preferred-languages/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/preferred-languages/) 、 [Spanish (Venezuela)](https://ve.wordpress.org/plugins/preferred-languages/)、
   [Swedish](https://sv.wordpress.org/plugins/preferred-languages/) 、 [Turkish](https://tr.wordpress.org/plugins/preferred-languages/)、
   [Ukrainian](https://uk.wordpress.org/plugins/preferred-languages/) 和 [Upper Sorbian](https://hsb.wordpress.org/plugins/preferred-languages/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/preferred-languages)
 * 标签
 * [i18n](https://cn.wordpress.org/plugins/tags/i18n/)[internationalization](https://cn.wordpress.org/plugins/tags/internationalization/)
   [language](https://cn.wordpress.org/plugins/tags/language/)[localization](https://cn.wordpress.org/plugins/tags/localization/)
   [translation](https://cn.wordpress.org/plugins/tags/translation/)
 *  [高级视图](https://cn.wordpress.org/plugins/preferred-languages/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  17 条 5 星评价     ](https://wordpress.org/support/plugin/preferred-languages/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/preferred-languages/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/preferred-languages/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/preferred-languages/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/preferred-languages/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/preferred-languages/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/preferred-languages/reviews/)

## 贡献者

 *   [ Pascal Birchler ](https://profiles.wordpress.org/swissspidy/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/preferred-languages/)