diff --git a/.github/ISSUE_TEMPLATE/issue-en.yml b/.github/ISSUE_TEMPLATE/issue-en.yml index 86e2411..a1ddd2b 100644 --- a/.github/ISSUE_TEMPLATE/issue-en.yml +++ b/.github/ISSUE_TEMPLATE/issue-en.yml @@ -33,7 +33,7 @@ body: id: plugin-version attributes: label: HTBD version - placeholder: "For example: 0.3.0" + placeholder: "For example: 0.3.1" validations: required: true diff --git a/.github/ISSUE_TEMPLATE/issue.yml b/.github/ISSUE_TEMPLATE/issue.yml index b0517a6..62e4eff 100644 --- a/.github/ISSUE_TEMPLATE/issue.yml +++ b/.github/ISSUE_TEMPLATE/issue.yml @@ -33,7 +33,7 @@ body: id: plugin-version attributes: label: HTBD 版本 - placeholder: 例如:0.3.0 + placeholder: 例如:0.3.1 validations: required: true diff --git a/.github/workflows/deploy-wordpress-svn.yml b/.github/workflows/deploy-wordpress-svn.yml index fa6c4c2..c7e3338 100644 --- a/.github/workflows/deploy-wordpress-svn.yml +++ b/.github/workflows/deploy-wordpress-svn.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: release_tag: - description: GitHub Release tag to deploy (for example, v0.3.0) + description: GitHub Release tag to deploy (for example, v0.3.1) required: true type: string diff --git a/hyx-translator-for-baidu-translate.php b/hyx-translator-for-baidu-translate.php index 402c53d..c9f6091 100644 --- a/hyx-translator-for-baidu-translate.php +++ b/hyx-translator-for-baidu-translate.php @@ -3,7 +3,7 @@ * Plugin Name: HTBD - hyx Translator powered by Baidu Translate * Plugin URI: https://www.vblg.top/index.php/archives/147 * Description: Persistent multilingual WordPress translations powered by Baidu Translate. - * Version: 0.3.0 + * Version: 0.3.1 * Requires at least: 6.4 * Requires PHP: 8.1 * Author: hanyixuanten @@ -16,7 +16,7 @@ defined( 'ABSPATH' ) || exit; -define( 'HTBD_VERSION', '0.3.0' ); +define( 'HTBD_VERSION', '0.3.1' ); define( 'HTBD_FILE', __FILE__ ); define( 'HTBD_PATH', plugin_dir_path( __FILE__ ) ); diff --git a/languages/hyx-translator-for-baidu-translate-zh_CN.po b/languages/hyx-translator-for-baidu-translate-zh_CN.po index 6e5538d..5bf55d8 100644 --- a/languages/hyx-translator-for-baidu-translate-zh_CN.po +++ b/languages/hyx-translator-for-baidu-translate-zh_CN.po @@ -3,7 +3,7 @@ # This file is distributed under the same license as the hyx-translator-for-baidu-translate package. msgid "" msgstr "" -"Project-Id-Version: hyx-translator-for-baidu-translate 0.3.0\n" +"Project-Id-Version: hyx-translator-for-baidu-translate 0.3.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-07-28 14:41+0800\n" "PO-Revision-Date: 2026-07-28 14:45+0800\n" diff --git a/languages/hyx-translator-for-baidu-translate.pot b/languages/hyx-translator-for-baidu-translate.pot index d9285f3..e6eb5ad 100644 --- a/languages/hyx-translator-for-baidu-translate.pot +++ b/languages/hyx-translator-for-baidu-translate.pot @@ -6,7 +6,7 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: hyx-translator-for-baidu-translate 0.3.0\n" +"Project-Id-Version: hyx-translator-for-baidu-translate 0.3.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-07-28 14:41+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" diff --git a/languages/wp-plugins-hyx-translator-for-baidu-translate-stable-readme-zh-cn.po b/languages/wp-plugins-hyx-translator-for-baidu-translate-stable-readme-zh-cn.po index 0bb807a..f16e709 100644 --- a/languages/wp-plugins-hyx-translator-for-baidu-translate-stable-readme-zh-cn.po +++ b/languages/wp-plugins-hyx-translator-for-baidu-translate-stable-readme-zh-cn.po @@ -2,7 +2,7 @@ # This file is distributed under the same license as the Plugins - HTBD – hyx Translator powered by Baidu Translate - Stable Readme (latest release) package. msgid "" msgstr "" -"PO-Revision-Date: 2026-08-01 00:00+0000\n" +"PO-Revision-Date: 2026-08-06 00:00+0000\n" "Last-Translator: HTBD contributors\n" "Language-Team: Chinese (China)\n" "MIME-Version: 1.0\n" @@ -100,8 +100,8 @@ msgid "Supported values include published post and page titles, content, excerpt msgstr "支持的值包括已发布文章和页面的标题、正文、摘要、图片替代文本、分类、标签及部分 SEO 字段。插件只为 publish 状态的文章和页面自动安排翻译。完成的翻译保存在 {$wpdb->prefix}hyx_bd_translations 自建数据表中;启用改名后的插件时,已有 {$wpdb->prefix}btranslate_translations 数据会自动迁移。前端渲染只读取已保存的值,不会动态请求翻译服务。" #. Found in description paragraph. -msgid "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." -msgstr "WordPress 后台界面会跟随当前 WordPress 语言:默认显示英文,WordPress 设为 zh_CN 时使用插件内置的简体中文翻译。" +msgid "The WordPress admin interface follows the current WordPress locale. English is the default. Approved WordPress.org language packs take priority, with the bundled Simplified Chinese translation used as a fallback when WordPress is set to zh_CN." +msgstr "WordPress 后台界面会跟随当前 WordPress 语言。默认显示英文;WordPress.org 已批准的语言包优先,WordPress 设为 zh_CN 时,插件内置的简体中文翻译用作后备。" #. Found in description paragraph. msgid "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." @@ -123,6 +123,26 @@ msgstr "百度翻译 API 文档:https://fanyi-api.baidu.com/doc/23" msgid "External Services" msgstr "外部服务" +#. Found in changelog list item. +#, gp-priority: low +msgid "Improve WordPress.org localization packaging and release deployment workflows." +msgstr "改进 WordPress.org 本地化资源打包和发布部署工作流。" + +#. Found in changelog list item. +#, gp-priority: low +msgid "Preserve target-language routing when submitting comments and following comment redirects." +msgstr "提交评论及处理评论重定向时保留目标语言路由。" + +#. Found in changelog list item. +#, gp-priority: low +msgid "Fix Baidu Japanese routing to use the supported jp language code." +msgstr "修复百度日语路由,改用受支持的 jp 语言代码。" + +#. Found in changelog list item. +#, gp-priority: low +msgid "Add per-language controls for translating posts, terms, and clearing persisted translations." +msgstr "新增按语言翻译文章和分类项以及清除持久化翻译的控制项。" + #. Found in changelog list item. #, gp-priority: low msgid "Add automated GitHub Release packaging and WordPress.org SVN deployment workflows." diff --git a/readme.txt b/readme.txt index 6fbd7b8..4615ca3 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Homepage: https://www.vblg.top/index.php/archives/147 Requires at least: 6.4 Tested up to: 7.0 Requires PHP: 8.1 -Stable tag: 0.3.0 +Stable tag: 0.3.1 License: GPL-3.0-only License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -63,6 +63,13 @@ Uninstalling removes plugin settings, scheduled tasks, and the custom translatio == Changelog == += 0.3.1 = + +* Add per-language controls for translating posts, terms, and clearing persisted translations. +* Fix Baidu Japanese routing to use the supported `jp` language code. +* Preserve target-language routing when submitting comments and following comment redirects. +* Improve WordPress.org localization packaging and release deployment workflows. + = 0.3.0 = * Add automatic source-language detection using Baidu's `auto` mode.