Polylang

描述

功能

Polylang 允许你创建一个双语言或者多语言的WordPress站点。你写的文章,页面一级创建的分类一级文章标签,通常都会被翻译。文章的翻译,无论是否使用默认语言,都是可选的。

  • 你可以使用许多你想要语言。支持 RTL(Right to Left) 语言脚本。WordPress语言包会自动下载和更新。
  • You can translate posts, pages, media, categories, post tags, menus, widgets…
  • 自定义文章类型,自定义分类法,浮动文章,以及文章格式,RSS feeds 以及所有默认的WordPress widgets 的支持。
  • 语言可以由内容或url中的语言代码设置,也可以为每种语言使用一个不同的子域或域
  • 分类,文章标签添加新的文章或页面翻译时,会自动复制类别、文章标记以及其他一些元
  • 一个自定义的语言切换提供了一个widget或者菜单中提供一个导航

作者不会再wordpress.org forum 提供支持。你可以到Polylang Pro这里会提供额外的用户支持.

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.

你是否喜欢Polylang?

不要犹豫 给出你的反馈.

屏幕截图

  • Polylang 语言管理员面板
  • 字符串翻译 admin panel
  • 多语言 media library
  • 编辑文章屏幕带有Language metabox

安装

  1. 请确定你想要使用WordPress 5.1 或者之后,你的服务器运行再 PHP 5.6 或者之后 (同样需求 WordPress 本身)
  2. If you tried other multilingual plugins, deactivate them before activating Polylang, otherwise, you may get unexpected results!
  3. 从WordPress中常见的”Plugins”菜单安装并且激活插件
  4. Go to the languages settings page and create the languages you need
  5. 添加”语言切换”widget让你的访问者切换语言
  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.

常见问题

哪里找到帮助?

评价

2021年7月24日
I, a ordinary clerk from a provincial city, was able to build a website for my hobby using WordPress, and Polylang gave me the opportunity to open it to the entire English-speaking world. That's great! Great job, thank you polylang.pro for expanding communication and cooperation between people!
2021年7月24日
I needed a solution for making my blog bilingual. Not as in having identical content in two languages, but as in having different content for each language Polylang was a great solution, solved my problem and was reasonably easy to install and configure. Recommended.
2021年7月23日
The plugin is so good, easier to use than i thought. It is lightweight, fast, easy to use, easy to understand, almost completely automatized. Not many options in the admin panel, just the ones that matter. Integrates well with other plugins. Most important: it fixes the HTML-lang and the hreflang tags automatically and it does it very well for every page. You don't have to understand how hreflangs work, just link together the different translations of a post and Polylang will take care of the source code. Does not matter if you installed WordPress in English (just to have the menus in this language), this plugin will change the website HTML default language to whatever you want, without messing with your admin panel, which will remain in English. Even if your website is written only in one language, and you are looking for a good hreflang/HTML-lang manager plugin, this is also for you. One small bug: You cannot link other languages when editing the English post. You have to edit other languages posts, one by one, to link the English one to them, and in the end you will have all languages linked together.
阅读所有2,006条评价

贡献者及开发者

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

贡献者

“Polylang”插件已被翻译至45种本地话语言。 感谢所有译者为本插件所做的贡献。

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

对开发感兴趣吗?

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

更新日志

3.0.6 (2021-06-22)

  • Fix a conflict with the WooCommerce cart translation and cache plugins #876

3.0.5 (2021-06-08)

  • Pro: fix original post not assigned to a new translation when the languages sidebar is closed
  • Pro: Attempt to fix zip file corrupted on some installations when exporting string translations
  • Support session cookie with the pll_cookie_expiration filter #835
  • 修复插件为翻译后的post类型定义自己的编辑器时的javascript错误#837
  • 修复了当编辑一个条目时语言展示再屏幕选项的问题 #850
  • 缓存:当保存文章时修复文章类型归档缓存不能清理的问题 #828

3.0.4 (2021-04-27)

  • Improve performance in the pages (or hierarchical post types) list table
  • Fix an ajax conflict with WooCommerce License manager

3.0.3 (2021-03-23)

  • Fix a warning when a language is corrupted in database (term_language missing)
  • Fix confirmation modal with WooCommerce and WordPress < 5.6
  • 修复ajax与WooCommerce树表Rate Shipping和HubSpot多功能营销的冲突

3.0.2 (2021-03-16)

  • Move hreflang attributes higher in the head section #771
  • Fix custom flags not working (introduced in 3.0)
  • Fix translation of the confirmation modal when changing the language of a post
  • Fix js and css not loaded when Polylang is used as a mu-plugin ((introduced in 3.0))
  • Fix support for html5 stylesheet link tags #775
  • Fix possible warning in frontend-filters-links.php
  • Yoast SEO Premium: Take over the multilingual compatibility removed in Yoast SEO Premium 15.8 #796
  • Yoast SEO: Fix CPT breadcrumb title when the option is left empty #794
  • Yoast SEO: Fix sitemap.xml not redirected on secondary domains #789

3.0.1 (2021-03-10)

  • Fix media gallery messed when editing a post in the classic editor
  • Fix missing script dependency on old WP versions
  • Fix CSS conflict with WooCommerce Bookings for WP < 5.6
  • Fix conflict resulting in ‘__’ already defined in block-editor.js. #779
  • Fix search form removed for some themes. Props Marián Kadaňka. #780
  • Fix fatal error with very old versions of Yoast SEO. Props Nicola Peluchetti. #781

3.0 (2021-03-08)

  • 添加WordPress 5.7的兼容性
  • Remove upgrades from Polylang older than 1.8
  • Remove deprecated class PLL_Pointer
  • Pro: Hide the license keys
  • Pro: Fix redirect to the home page of a deactivated language
  • Pro: Fix synchronization of post status not working
  • Pro: Fix language switcher block not working in a post retrieved in REST API
  • Pro: Fix PO export of strings with line breaks
  • Pro:修复文件区块标题自定义丢失
  • 添加一个对话框,请求确认经典编辑器和块编辑器中的语言更改
  • 优化浏览器语言侦测 #591
  • Improve robustness and documentation of code
  • Fix media library after the language has been chnaged in the editor metabox
  • Fix duplicated title attribute on flag link in posts list
  • Fix legacy block editor language metabox compatibility with WordPress 5.6
  • Fix uploaded theme and plugin files in media library
  • Fix site title not translated in email change confirmation email
  • Fix remaining deprecated jQuery notices #741
  • Fix compatibility with GN publisher
  • Fix compatibility with Woodmart theme search form
  • Fix compatibility issue with 3rd party ajax requests since jQuery 3.3 #744
  • Fix CSS conflict with WooCommerce Bookings
  • Fix browser error when displaying an embed and using a cache plugin #757
  • Fix post type archive title and metadesc not translated in Yoast SEO
  • Fix PHP notice in REST API

查看 changelog.txt 用于老的改变日志