Linux 软件免费装
Banner图

Polyglot for Polylang

开发者 simogol
更新时间 2026年5月13日 02:40
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

polylang translation google translate localization multilingual

下载

1.2.0 1.3.1

详情介绍:

Polyglot helps administrators run controlled translation jobs from Tools > Polyglot for: The plugin is designed for safe, incremental translation workflows and does not create missing translated posts. Polyglot is built for projects that use WordPress as a CMS with a clear separation between content and presentation (for example, headless WordPress setups). It is not recommended for page-builder-heavy workflows (such as Elementor) where content and presentation are tightly coupled. Configuration Translation Strings tab Pages, Posts and CPT tab Translation rules For each eligible source/target pair, a field is translated only when: If target has different non-empty content, it is treated as edited and skipped. Custom field safety When custom-field translation is enabled, Polyglot auto-detects non-protected meta keys and applies safeguards: Default excluded keys currently include: Job processing and progress Troubleshooting failed jobs If a job ends with done_with_errors, open the Job Progress panel and review the Failure details list. Each row includes: To inspect raw job data directly: Key fields: If errors are API-related, verify: Important billing notice Google Cloud Translation API is a paid service with usage-based pricing. Disclaimer Polyglot is provided as is, without any warranty of any kind.

安装:

  1. Upload the plugin folder to /wp-content/plugins/
  2. Install and activate Polylang first
  3. Activate Polyglot in WordPress admin
  4. Open Tools > Polyglot
  5. Save Google API key in Configuration

常见问题:

Does Polyglot overwrite existing translated content?

No. It only translates fields that appear untranslated by its detection rules.

Does Polyglot create missing translated posts?

No. It only works on already existing Polylang-linked target posts.

Who can run translation jobs?

By default, only Administrators can access and run Polyglot jobs. If your site customizes roles/capabilities and grants manage_options to Editors (or another role), those users can run jobs too.

Which API is used?

Google Cloud Translation API Basic (v2), authenticated via API key.

How do I get a Google API key for Translation?

  1. Go to Google Cloud Console and create (or select) a project.
  2. Enable billing for that project.
  3. Enable the Cloud Translation API.
  4. Open APIs & Services > Credentials and create an API key.
  5. Copy the key into Tools > Polyglot > Configuration.
For security, restrict the API key in Google Cloud:
  • API restrictions: allow only Cloud Translation API.
  • Application restrictions: limit usage to your required domains/referrers (or server IPs, based on your setup).

更新日志:

1.3.1 1.2.0 1.1.0 1.0.0