[WordPress] 外掛分享: Polyglot for Polylang

首頁外掛目錄 › Polyglot for Polylang
WordPress 外掛 Polyglot for Polylang 的封面圖片
全新外掛
安裝啟用
尚無評分
15 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.3.1 上架:2026-05-11

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Polyglot for Polylang」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Polyglot helps administrators run controlled translation jobs from Tools > Polyglot for:

Polylang String Translations
Pages, Posts, and public Custom Post Types (CPTs)

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

Save Google API key in WordPress admin
API key is stored encrypted in WordPress options
Tabs are locked until an API key is configured

Translation Strings tab

Select Polylang string group
Select source and target languages
Translate only missing target-language string values
Background queue processing with live progress

Pages, Posts and CPT tab

Select one content type (page, post, or one public CPT)
Select source and target languages
Choose translation scope:

default content only (title, content, excerpt)
default content + custom fields

Custom field mode includes:

inline preview of custom field names that Polyglot will attempt to translate
explicit risk acknowledgment checkbox before job start

Translation rules
For each eligible source/target pair, a field is translated only when:

target value equals source value, or
source value is non-empty and target value is empty.

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:

skips protected/internal keys
skips technical key patterns (for example id, slug, token, url, hash)
skips values that look serialized/JSON/URL/numeric/token-like
supports exclusion hook: polyglot_excluded_meta_keys

Default excluded keys currently include:

item_author

Job processing and progress

Jobs run in background batches using WP-Cron
Progress view includes status, remaining, scanned, translatable, translated, skipped, failed, and last error
If no eligible fields are found, Polyglot shows a success notice and does not start a queue

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:

Error category ([API], [SAVE], [OTHER])
Error message
Related identifiers (field key, language, post IDs, or string name)

To inspect raw job data directly:

wp option get polyglot_translation_job –format=json

Key fields:

status
last_error
totals.failed
errors[]

If errors are API-related, verify:

Cloud Translation API is enabled in the same Google Cloud project used by the key
Billing is enabled for that project
API key restrictions allow this WordPress instance (referrer/IP restrictions and API restriction to Cloud Translation API)

Important billing notice
Google Cloud Translation API is a paid service with usage-based pricing.

Large translation jobs can generate significant costs
Review quotas, billing settings, and pricing before running bulk jobs

Disclaimer
Polyglot is provided as is, without any warranty of any kind.

Use this plugin at your own risk.
Always create a full database and files backup before running translation jobs.
Translation jobs can modify content and custom fields; review your settings and previews carefully before starting.
The plugin author is not liable for data loss, site issues, translation quality issues, or other damages resulting from use.

External services
This plugin relies on Google Cloud Translation API (Basic v2) to perform automated translations. The service is the only third-party endpoint contacted by the plugin.
What it is used for:

Translating Polylang String Translation entries on demand.
Translating post/page/CPT title, content, excerpt, and (when explicitly enabled) selected custom field values on demand.
Validating the saved API key by calling the languages list endpoint when the administrator clicks “Test Saved API Key”.

What data is sent and when:

Each translation request sends the source text, the source language code, and the target language code to https://translation.googleapis.com/language/translate/v2 along with the configured API key in the request URL. Requests are made only while a translation job is processing or when the administrator clicks “Test Saved API Key”.
The validation request sends only the API key to https://translation.googleapis.com/language/translate/v2/languages.
No personal data, user identifiers, IP addresses, or site visitor data are sent by the plugin. Standard HTTP request metadata (such as referrer set to the site URL) is included so the API key can be restricted by HTTP referrer in Google Cloud.

Service provider: Google LLC. By using this plugin you agree to Google Cloud’s terms.

Google Cloud Terms of Service: https://cloud.google.com/terms
Google Privacy Policy: https://policies.google.com/privacy
Google Cloud Translation documentation: https://cloud.google.com/translate/docs

延伸相關外掛

文章
Filter
Apply Filters
Mastodon