Polylang

描述

Features

Polylang allows you to create a bilingual or multilingual WordPress site. You write posts, pages and create categories and post tags as usual, and then define the language for each of them. The translation of a post, whether it is in the default language or not, is optional.

  • You can use as many languages as you want. RTL language scripts are supported. WordPress languages packs are automatically downloaded and updated.
  • You can translate posts, pages, media, categories, post tags, menus, widgets…
  • Custom post types, custom taxonomies, sticky posts and post formats, RSS feeds and all default WordPress widgets are supported.
  • The language is either set by the content or by the language code in url, or you can use one different subdomain or domain per language
  • Categories, post tags as well as some other metas are automatically copied when adding a new post or page translation
  • A customizable language switcher is provided as a widget or in the nav menu

The author does not provide support on the wordpress.org forum. Support and extra features are available to Polylang Pro users.

If you wish to migrate from WPML, you can use the plugin WPML to Polylang

If you wish to use a professional or automatic translation service, you can install Lingotek Translation, as an addon of Polylang. Lingotek offers a complete translation management system which provides services such as translation memory or semi-automated translation processes (e.g. machine translation > human translation > legal review).

鸣谢

Thanks a lot to all translators who help translating Polylang.
Thanks a lot to Alex Lopez for the design of the logo.
Most of the flags included with Polylang are coming from famfamfam and are public domain.
Wherever third party code has been used, credit has been given in the code’s comments.

Do you like Polylang?

Don’t hesitate to give your feedback.

屏幕截图

  • The Polylang languages admin panel
  • The Strings translations admin panel
  • Multilingual media library
  • The Edit Post screen with the Languages metabox

安装

  1. Make sure you are using WordPress 5.1 or later and that your server is running PHP 5.6 or later (same requirement as WordPress itself)
  2. If you tried other multilingual plugins, deactivate them before activating Polylang, otherwise, you may get unexpected results!
  3. Install and activate the plugin as usual from the ‘Plugins’ menu in WordPress.
  4. Go to the languages settings page and create the languages you need
  5. Add the ‘language switcher’ widget to let your visitors switch the language.
  6. Take care that your theme must come with the corresponding .mo files (Polylang automatically downloads them when they are available for themes and plugins in this repository). If your theme is not internationalized yet, please refer to the Theme Handbook or ask the theme author to internationalize it.

常见问题

Where to find help ?

Is Polylang compatible with WooCommerce?

  • You need a separate addon to make Polylang and WooCommerce work together. A Premium addon is available.

Do you need translation services?

  • If you want to use professional or automatic translation services, install and activate the Lingotek Translation plugin.

评价

2021年1月22日
Exelente Plugin seria genial algunas mejoras con respecto a compatibilidad pero el resto va genial
2021年1月22日
simple intuitive and powerful excellent tool
2021年1月20日
very useful for quickly having a multilingual site. The free version is also excellent
阅读所有的1,808评价

贡献者以及开发者

“Polylang” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

"Polylang "已被翻译成44种语言。 感谢译者的贡献。

将“Polylang”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.9.1 (2020-12-15)

  • Fix PHP notice: Undefined property: PLL_Cache_Compat::$options with cache plugins. Props bahaa-almahamid. #658
  • Fix title of the search results page with Yoast SEO > 14.0

2.9 (2020-12-07)

  • Add compatibility with WordPress 5.6
  • Pro: Add locale fallback used when the theme or plugins translations are not available
  • Pro: Fix SSO and browser preferred language redirect when using multiple domains
  • Pro: Fix post slugs for German and Danish in the REST API
  • Pro: Fix a fatal error in ACF integration when saving url modifications with multiple domains
  • Pro: Fix a deprecated notice fired by ACF since the version 5.9.2
  • Pro: Fix ACF relationship fields not reloaded when changing the language in the classic editor
  • Update plugin updater to version 1.8
  • Add Lower Sorbian to the list of predefined language
  • Options are now translated on backend when using the admin language filter
  • Keep previous translations when modifying an option value
  • Add navigation markup to the language switcher widget
  • Fix canonical redirect for taxonomy terms
  • Fix a fatal error when deleting a post with a translation group corrupted in the database
  • Fix a fatal error when switching to plain permalinks and using multiple domains
  • Fix a conflict with WP Sweep which could corrupt languages
  • Fix title displayed instead of meta description with Yoast SEO > 14.0
  • Fix PHP Notice: Undefined index: wp_the_query in /frontend/choose-lang-content.php on line 92

2.8.4 (2020-11-03)

  • Pro: Remove useless bulk translate action for ACF fields groups
  • Pro: Fix the translation of the CPTUI labels when the language is set from the content
  • Fix sitemaps redirected to the default language since WP 5.5.1
  • Fix object cache not flushed for sticky posts #601
  • Fix blog page broken when trashing a page and the blog page is not translated in all languages
  • Fix custom flags ignored in WPML compatibility mode
  • Fix breadcrumb for untranslated post types in Yoast SEO

2.8.3 (2020-10-13)

  • Honor install_languages capability to download language packs
  • Pro: Fix integrations not loaded (with The Events Calendar, CPTUI, Content blocks)
  • Pro: Fix fatal error with ACF if a flexible content includes a repeater and a relationship
  • Pro: Fix terms sharing their slug impossible to update without changing the slug
  • When available, use wpcom_vip_get_page_by_path() instead of get_page_by_path()
  • Fix queries filtered when editing a post that was declared untranslatable after it got a language
  • Fix issues with Yoast SEO 14.0+ (breadcrumbs, canonical, title and description)

2.8.2 (2020-09-08)

  • Pro: Fix posts sharing the same slug displayed on the same page
  • Fix: Don’t use a javascript localized string removed in WP 5.5 #568
  • Fix fatal error in site health when no language is defined #563
  • Fix various issues with Yoast SEO 14.x #65, #503, #505
  • Fix fatal error with MU Domain Mapping when saving domains in Polylang settings #569

2.8.1 (2020-08-25)

  • Pro: Fix fatal error with WP 4.9
  • Fix pll_the_languages() with ‘raw’ option returning html flag instead of flag url #558
  • Fix compatibility with Duplicate Posts not correcly loaded #557
  • Fix custom flag size in admin bar language switcher #559
  • Fix tag clouds mixed in the classic editor #561

2.8 (2020-08-17)

  • Pro: Add a language switcher block
  • Pro: Add compatibility with block image edition introduced in WP 5.5
  • Pro: Fix our private taxonomies being displayed in the ACF field group rules.
  • Pro: Fix incorrect flags loaded from the block editor
  • Pro: Fix SSO causing a wrong redirect when using subdomains (introduced in 2.7.4)
  • Pro: Fix a performance issue on the plugins list
  • Pro: Fix option to automatically duplicate media in all languages when uploading a new file not honored in block image
  • Use composer for autoload and Polylang Pro dependency on Polylang
  • Display a flag for each post in the posts list tables (same for terms). #515
  • Add test for the homepage translations to Site Health
  • Add debug information to Site Health
  • Add compatibility with the sitemaps introduced in WP 5.5 #451
  • Always filter WP_Query by the current language
  • Support wildcards in “admin-texts” parent keys in wpml-config.xml
  • Fix sticky posts showed for all languages when the admin language filter is active #469
  • Fix a performance issue on the pages list
  • Fix dependency to jQuery Migrate removed from WP 5.5 #539
  • Fix: output secure cookie when using a cache plugin and ssl #542
  • Fix the possibility to create 2 terms with the same name in the same language, without specifying the second slug.
  • Fix sticky posts appearing 2 times in WP 5.5

See changelog.txt for older changelog