Polylang

Описание

Polylang полностью интегрирован в WordPress и использует только его встроенные основные функции (таксономии), позволяет поддерживать постоянную производительность вашего сайта и создавать многоязычные сайты, включающие от одного дополнительного языка до 10 и более в зависимости от ваших потребностей. Количество добавляемых языков не ограничено, а языковые пакеты WordPress автоматически загружаются по мере готовности.

Возможности

В зависимости от типа сайта, который создали или планируете создать, комбинация плагинов из приведенного ниже списка может представлять интерес.
Все плагины содержат мастер настройки, позволяющий установить их всего за несколько щелчков мышью.

Polylang

Polylang and Polylang Pro share the same core providing features such as:

  • Translating posts, pages, media, categories, post tags, custom post types and taxonomies, RSS feeds; RTL scripts are supported.
  • The language is either set by the language code in URL, or you can use a different sub-domain or domain per language.
  • Automatic copy of categories, post tags and other metas when creating a new post or page translation.
  • Translating classic menus and classic widgets. Also accessible with Site Editor Classic Features in block themes.
  • Customizable language switcher available as a classic widget or a classic navigation menu item.
  • Compatibility with Yoast SEO.

Polylang Pro

Helps optimizing the time spent translating your site with some very useful extra features such as:

  • Better integration in the new Block Editor.
  • Language switcher available as a block.
  • Language options available in the widget block editor.
  • Template parts translatable in the site editor (FSE).
  • Duplicate and/or synchronize content across post translations.
  • Improved compatibility with other plugins such as ACF Pro.
  • Share the same URL slug for posts or terms across languages.
  • Translate URL slugs for categories, author bases, custom post types and more…
  • Export and import of content in XLIFF format for outsourced professional translation.
  • Access to a Premium Support for personalized assistance.

Polylang for WooCommerce

Add-on for the compatibility with WooCommerce which provides features such as:

  • Translating WooCommerce pages (shop, check-out, cart, my account), product categories and global attribute terms directly in the WooCommerce interface.
  • Translating WooCommerce e-mails and sending them to customers in their language.
  • Products metadata synchronization.
  • Compatibility with the native WooCommerce CSV import & export tool.
  • Compatibility with popular plugins such as WooCommerce Subscriptions, Product Bundles, WooCommerce Bookings, Shipment Tracking and more.
  • Ability to use the WooCommerce REST API (available with Polylang Pro).
  • Access to a Premium Support for personalized assistance.

Neither of them will allow to do automated translation.

Our other free plugins

  • WPML to Polylang allows migrating from WPML to Polylang.
  • DynaMo speeds up the translation of WordPress for all non-English sites.
  • Site Editor Classic Features allows to use classic widgets (including the Polylang language switcher) and menus in the site editor (FSE).

Благодарности

Большое спасибо всем переводчикам, которые помогают переводить Polylang.
Большое спасибо Алексу Лопесу за дизайн логотипа.
Большинство флагов, включенных в Polylang, пришли из famfamfam и являются общественным достоянием.
Везде, где использовался сторонний код, в комментариях к коду были указаны ссылки.

3.6 (2024-03-18)

  • Requires WP 6.2 as minimum version
  • Add compatibility with WP 6.5
  • Pro: Add DeepL machine translation for posts
  • Pro: Add export and import in XLIFF 2.0/2.1 formats
  • Pro: Improve translator comments in exported PO files
  • Pro: Allow to export JSON encoded post and term metas in XLIFF files
  • Pro: Allow to export block sub-attributes in XLIFF files
  • Pro: Add footer notes block to XLIFF files
  • Pro: Single files are now exported directly instead of inside a zip
  • Pro: Reworked the language switcher navigation block
  • Pro: Fix language switcher navigation block justification not aligned with core settings in overlay menu (requires WP 6.5)
  • Pro: Fix a race condition which could lead to display a notice to the wrong user
  • Pro: Fix a conflict with ACF when rewrite rules are flushed with WP-CLI on a multisite
  • Pro: Fix import of several metas with same sources but different translations
  • Add filter pll_cookie_args to filter the Polylang cookie arguments #1406
  • Fix wrong translated post types and taxononies after a switch_to_blog() #1415
  • Fix a minor performance issue for the page for posts #1412
  • Fix a JS errors after quick edit. Props @mcguffin #1435, #1444
  • Fix a possible warning in view-translations-post.php #1439

3.5.4 (2024-02-06)

  • Pro: Fix an accessibility issue int the navigation language switcher block
  • Pro: Fix featured image not exported for posts with blocks
  • Pro: Fix a conflict with the Flatsome builder
  • Fix a notice when using system CRON. Props arielruminski #1397
  • Fix an edge case where a wrong post tag may be assigned to a post #1418

3.5.3 (2023-12-11)

  • Pro: Fix fatal error with The Events Calendar when rewrite param of event category is set to false
  • Remove flag alt text in the language switcher when both the flag and language name are displayed #1393
  • Fix incorrect string translations when 2 languages are sharing the same locale in a multisite #1378
  • Fix posts lists not filtered by the current language when editing a post in the block editor #1386
  • Fix error when a tax query is filled with unexpected data #1396

3.5.2 (2023-10-25)

  • Pro: Fix terms not filtered by the current language in the block editor custom taxonomy component panel
  • Fix incorrect rewrite rules leading to error 404 for the main site on mutisite #1375

3.5.1 (2023-10-17)

  • Pro: Fix terms not filtered by the current language in the block editor custom taxonomy component panel
  • Pro: Fix fatal error when using plain permalinks on multisite
  • Pro: Fix rewrite rules incorrectly refreshed when saving strings translations
  • Fix incorrect rewrite rules leading to error 404 on mutisite #1366
  • Fix fatal error when using symlinked MU plugins that are not in open_basedir #1368

3.5 (2023-10-09)

  • Requires WordPress 5.9 as minimum version
  • Pro: Manage navigation blocks translations in the site editor (requires WP 6.3)
  • Pro: Manage pages translations in the site editor (requires WP 6.3)
  • Pro: Manage patterns translations in the site editor (requires WP 6.3)
  • Pro: Remove compatibility with the navigation screen removed from Gütenberg 15.1
  • Pro: Add filter ‘pll_export_post_fields’ to control post fields exported to XLIFF files
  • Pro: Do not set default translation option to «translate» for ACF fields created before Polylang Pro is activated
  • Pro: Fix Polylang not set as recently active when automatically deactivated by Polylang Pro
  • Don’t output javascript type for themes supporting html5 #1332
  • Hook WP_Query automatic translation to ‘parse_query’ instead of ‘pre_get_posts’ #1339
  • Improve preload paths management for the block editor #1341
  • Fix rewrite rules in WP 6.4 #1345
  • Fix: always assign the default language to new posts and terms if no language is specified #1351
  • Fix ‘polylang’ option not correctly created when a new site is created on a multisite #1319
  • Fix front page display switched to «Your latest posts» when deleting a static home page translation #1311
  • Fix wrong language assigned to terms #1336
  • Fix error when updating a translated option while the blog is switched on a multisite #1342

Смотрите информацию о более древних изменениях в changelog.txt

Скриншоты

  • Панель управления языками Polylang
  • Панель управления строк переводов
  • Многоязычная медиа-библиотека
  • Страница редактирования записи с метаблоком "Языки"

Установка

  1. Убедитесь, что используете WordPress 5.9 или более позднюю и что на сервере установлен PHP 7.0 или более поздней версии (то же требование, что и для WordPress).
  2. Если вы пробовали другие многоязычные плагины, отключите их перед активацией Polylang, в противном случае, вы можете получить неожиданные результаты!
  3. Установите и активируйте плагин, как обычно, из раздела Плагины в WordPress.
  4. The setup wizard is automatically launched to help you get started more easily with Polylang by configuring the main features.

Часто задаваемые вопросы

Где найти помощь?

Совместим ли Polylang с WooCommerce?

Отзывы

18.03.2024
I'm using the plugin since years and in different sites. And I'm glad that you don't necessarily have to translate every page into another language.
11.03.2024
I already have the entire website in the first language, I just need to duplicate all the pages, including the home page, and change the text. But Poly is too smart, and it insists on creating the home page for the second language itself, so I have to start from scratch. I can't find a way to set the page I already have ready as the home page for the second language, which is, by the way, a translation of the home page for the first language... so frustrating!!
29.02.2024
I tried a number of other plugins and they were birds nests of complicated options. For standard WP websites this one is easy to use and works well. I have not tried it on any Woo websites.
Посмотреть все 2 594 отзыва

Участники и разработчики

«Polylang» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Polylang» переведён на 48 языков. Благодарим переводчиков за их работу.

Перевести «Polylang» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.