跳到内容

Kzdev String Translations for Polylang

v1.0.0

kzdev · 2026年8月18日 上架

Manually translate frontend strings on the fly with Polylang language support and CSV import/export.

正在使用
10 以下
评分
暂无
累计下载
273
最近更新
2026年8月18日
需要 WordPress 5.0+已测试到 7.0.9PHP 8.0+

贡献者

Kzdev String Translations for Polylang (formerly “Manual Translations for Polylang”) is a lightweight utility plugin that resolves the common issue of untranslatable frontend strings (e.g. dynamic cart widgets, checkout fragments, AJAX loaders, and JS-injected content). By hooking into Polylang’s active languages, it lets you map original strings to custom translation values and applies them client-side in real-time.

This plugin is independent from Polylang: Polylang is a trademark of WP SYNTEX, the manufacturer of the Polylang plugin. This plugin is not affiliated with, endorsed by, or sponsored by WP SYNTEX.

Features

  • Centralized translation management UI under the Polylang “Languages” menu
  • Client-side text replacement engine powered by MutationObserver
  • Instant translation of dynamic AJAX changes (like WooCommerce cart increments, checkout updates)
  • No page reloads – fully reactive dashboard
  • Selectable rows per page (10, 20, 50, 100) and live instant filtering
  • One-click CSV Export (selected or all translations)
  • Seamless CSV Import (Merge or Overwrite mode)
  • AI Translation Helper for posts, terms, and UI strings (optional, see “External services”)
  • Deep security integration (nonces, user capabilities, output escaping, validated sanitization)
  • Safe database-only storage in WordPress Options (no custom tables, no file clutter)
  • Graceful fallback to the default site locale if Polylang is missing or disabled

Storage

Translations are stored safely in the database using the WordPress Options API. No custom database tables are created, and no template or script files are generated.

External services

This plugin offers an optional AI Translation Helper. When enabled by the site administrator, it sends data to an OpenAI-compatible API:

  • Service: OpenAI-compatible Chat Completions API (configurable endpoint, defaults to api.openai.com).
  • Data sent: The source text to be translated (a UI string, post title/content/excerpt, or term name/description) together with the target language, a system prompt, and the configured API key for authentication.
  • When: Data is sent only when an administrator explicitly triggers an AI translation action and a provider (with API key) has been configured. No data is sent automatically, in the background, or on the public frontend.
  • Data storage: The API key and model settings are stored in the WordPress database and used solely to authenticate translation requests.

  • OpenAI Terms of Use

  • OpenAI Privacy Policy

Site owners are responsible for the content they submit via this feature. You can disable the AI Translation Helper at any time in the plugin settings; the plugin’s manual translation features work fully without it.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums