Title: HTBD &#8211; hyx Translator powered by Baidu Translate
Author: hanyixuanten
Published: <strong>July 31, 2026</strong>
Last modified: July 31, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/hyx-translator-for-baidu-translate.svg)

# HTBD – hyx Translator powered by Baidu Translate

 By [hanyixuanten](https://profiles.wordpress.org/hanyixuanten/)

[Download](https://downloads.wordpress.org/plugin/hyx-translator-for-baidu-translate.0.3.0.zip)

 * [Details](https://wordpress.org/plugins/hyx-translator-for-baidu-translate/#description)
 * [Reviews](https://wordpress.org/plugins/hyx-translator-for-baidu-translate/#reviews)
 *  [Installation](https://wordpress.org/plugins/hyx-translator-for-baidu-translate/#installation)
 * [Development](https://wordpress.org/plugins/hyx-translator-for-baidu-translate/#developers)

 [Support](https://wordpress.org/support/plugin/hyx-translator-for-baidu-translate/)

## Description

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

## Installation

 1. Upload the `hyx-translator-for-baidu-translate` directory to `/wp-content/plugins/`.
 2. Activate HTBD through the Plugins screen in WordPress.
 3. Open Settings > HTBD and configure the Baidu credentials, languages, and routing
    mode. Enable automatic source-language detection to use Baidu’s `auto` source language
    mode.
 4. After saving settings for the first time, manually run Retranslate all content 
    to queue existing content.

Automatic detection is stored independently from the source language value. Manually
entering `auto` without enabling automatic detection remains a distinct configuration
state.

## FAQ

### Does the plugin translate content on every page request?

No. Each value is translated by a scheduled task and persisted for reuse. Front-
end requests read stored translations only.

### Does the plugin translate code in posts or pages?

No. Content inside HTML `<pre>` and `<code>` elements is preserved in the source
language and is not sent for translation.

### How do I retry a failed translation?

Failed posts, pages, categories, or tags appear below the progress bar on the Settings
page. Use the Retranslate button beside an item to retry it.

### What data is removed during uninstall?

Uninstalling removes plugin settings, scheduled tasks, and the custom translation
table, including all persisted translations.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“HTBD – hyx Translator powered by Baidu Translate” is open source software. The 
following people have contributed to this plugin.

Contributors

 *   [ hanyixuanten ](https://profiles.wordpress.org/hanyixuanten/)

[Translate “HTBD – hyx Translator powered by Baidu Translate” into your language.](https://translate.wordpress.org/projects/wp-plugins/hyx-translator-for-baidu-translate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hyx-translator-for-baidu-translate/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hyx-translator-for-baidu-translate/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hyx-translator-for-baidu-translate/)
by [RSS](https://plugins.trac.wordpress.org/log/hyx-translator-for-baidu-translate/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.3.0

 * Add automatic source-language detection using Baidu’s `auto` mode.
 * Redirect target-language `wp-admin` and `wp-login.php` requests to the source
   site while preserving query parameters.
 * Add automated GitHub Release packaging and WordPress.org SVN deployment workflows.

#### 0.2.4

 * Fix translated titles so singular views use the current post context.
 * Preserve content inside HTML `<pre>` and `<code>` elements instead of sending
   it for translation.
 * Improve plugin security metadata and translator attribution.
 * Update the plugin homepage URL.

#### 0.2.3

 * Rename the plugin and codebase to HTBD / hyx-translator-for-baidu-translate.
 * Migrate existing translation data from the previous custom database table.
 * Update packaging, localization, documentation, and issue templates for the new
   plugin identity.
 * Fix the release archive build workflow.

## Meta

 *  Version **0.3.0**
 *  Last updated **8 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 8.1 or higher **
 *  [Advanced View](https://wordpress.org/plugins/hyx-translator-for-baidu-translate/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/hyx-translator-for-baidu-translate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hyx-translator-for-baidu-translate/reviews/)

## Contributors

 *   [ hanyixuanten ](https://profiles.wordpress.org/hanyixuanten/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hyx-translator-for-baidu-translate/)