[WordPress] 外掛分享: HTBD – hyx Translator powered by Baidu Translate

首頁外掛目錄 › HTBD – hyx Translator powered by Baidu Translate
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.4+ PHP 8.1+ v0.2.4 上架:2026-07-30

內容簡介

HTBD 是一款利用百度翻譯 API 將 WordPress 內容進行翻譯的外掛,並持久化每次翻譯以便重複使用。它支援語言特定的子目錄 URL 和網域綁定,讓網站能夠輕鬆實現多語言功能。

【主要功能】
• 支援多種內容翻譯,包括文章標題和內容
• 自動翻譯已發佈的文章和頁面
• 持久化翻譯結果,避免重複請求
• 支援子目錄和網域路由功能
• 需要百度翻譯帳戶及應用 ID

開發者團隊

⬇ 下載最新版 (v0.2.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「HTBD – hyx Translator powered by Baidu Translate」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

HTBD translates supported WordPress content with the Baidu Translate API and persists each translation for reuse. It supports language-specific subdirectory URLs and domain bindings.
The WordPress admin interface follows the current WordPress locale. English is the default, and a bundled Simplified Chinese translation is used when WordPress is set to zh_CN.
Supported values include published post and page titles, content, excerpts, image alternative text, categories, tags, and selected SEO fields. Automatic translation is only scheduled for posts and pages with the publish status. Completed translations are stored in the {$wpdb->prefix}hyx_bd_translations custom database table. Existing {$wpdb->prefix}btranslate_translations data is migrated when the renamed plugin is activated. Front-end rendering reuses stored values and never calls the translation provider dynamically.
Subdirectory routing supports paths such as /en/example-post/. Domain routing maps configured hostnames to target languages. Requests for wp-login.php or wp-admin through a target-language route are redirected to the corresponding source-site URL while preserving query parameters. Translation failures are non-fatal and fall back to source-language content.
External Services
HTBD connects to the Baidu Translate Open Platform API, a service provided by Baidu, to translate WordPress content. The plugin cannot generate new translations without this service. A Baidu Translate account, application ID, and secret key are required. Baidu may apply request quotas or usage charges according to the service plan selected by the site administrator.
The API is contacted by scheduled tasks after a published post or page is saved, after a supported category or tag is created or edited, or after an administrator explicitly queues or refreshes translations. Front-end page views reuse stored translations and do not contact Baidu. The plugin also makes no Baidu request when valid persisted translations are already available, unless an administrator explicitly requests a refresh.
For each translation request, the plugin sends the text being translated, the configured source and target language codes, the Baidu application ID, a random salt, and a request signature. Depending on the content being translated, the text may contain published post or page titles, body text, excerpts, selected SEO title and description values, attached image alternative text, and category or tag names and descriptions. Standard network information, including the originating server IP address, is also visible to Baidu as part of the HTTPS request. The secret key is used locally to create the signature and is not sent as a separate request field.
HTBD stores the returned translated text in the WordPress database but does not store complete Baidu response payloads. Data sent to Baidu is subject to Baidu’s own terms and privacy practices:

Baidu Translate API documentation: https://fanyi-api.baidu.com/doc/23
Baidu Translate Open Platform service agreement: https://fanyi-api.baidu.com/doc/6
Baidu privacy policy: https://privacy.baidu.com/policy

延伸相關外掛

文章
Filter
Apply Filters
Mastodon