HHG for TranslatePress
=== HHG for TranslatePress ===
Contributors: huhonggang
Tags: translatepress, translation, openai, gemini, multilingual
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.0.2
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Extend Google Gemini, Tencent Hunyuan, OpenAI, Smart Spectrum AI and other AI translation engines for TranslatePress plugin, support multi-model selection, beautiful interface and strong compatibility.
== Description ==
HHG for TranslatePress is an enhancement plugin for TranslatePress multi-language plugin to extend the automatic translation capability, integrating mainstream AI translation engines such as Google Gemini, Tencent Hunyuan, OpenAI GPT, Wisdom Spectrum AI GLM, etc., and supporting multi-model selection, API customization, batch translation, error handling and Advanced language mapping. The interface style is consistent with TranslatePress natively and has strong compatibility, which is suitable for sites that need high-quality automatic translation.
Main Features:
- Support Google Gemini, Tencent Hunyuan, OpenAI GPT, Smart Spectrum AI GLM AI translation engines.
- Supports multiple model selection and customized models
- Supports custom API Endpoint
- Fully compatible with TranslatePress native settings and front-end translation.
- Beautiful interface and convenient operation
- Supports batch translation, error alerts, and API testing.
- Code security, in line with WordPress best practices
== Installation ==
- Make sure the TranslatePress plugin is installed and activated.
- Upload the plugin to the
/wp-content/plugins/hhg-for-translatepress/
directory or upload the zip directly in the backend. - Enable HHG for TranslatePress on the Plugins page in the WordPress backend.
- Go to “Settings > TranslatePress > Automatic Translation” page, select and configure the desired AI translation engine and model, and save the settings.
== Frequently Asked Questions ==
=Select no new model? =
You must have the TranslatePress – Multilingual plugin enabled, and some of them require the TranslatePress – Business extension to work.
= Do I need the TranslatePress master plugin? =
Yes, TranslatePress must be installed and activated first.
= What AI translation engines are supported? =
currently supports Google Gemini, Tencent Hunyuan, OpenAI GPT, and Smart Spectrum AI GLM, and will continue to expand.
= How to get an API Key? =
Please go to the respective platforms (Google AI Studio, Tencent Hunyuan, OpenAI, Wisdom Spectrum AI Open Platform) to apply for an API Key and fill it in the setup page.
= Do you support custom models and API addresses? =
Yes, OpenAI and Gemini can customize models, and OpenAI supports custom API Endpoint.
= Is the plugin secure? =
All inputs and outputs are securely handled by WordPress and comply with the official security specification.
== Screenshots ==
- Setup screen: Multi-Engine Selection and Model Configuration
- OpenAI configuration example
- Tencent Hunyuan Configuration Example
== Changelog ==
= 1.0.2 =
- Add Wisdom Spectrum AI GLM support, support GLM-4-FlashX, GLM-4-Flash-250414 and other models.
- Fix the problem of getting the API key of Wisdom Spectrum, make sure the settings are saved correctly.
- Fix the “Undefined array key” warning in front-end translation, and optimize the array key matching.
- Optimize API call parameters according to official documents, and add concurrency support.
- Optimize the interface style, and unify the interface of all engine settings.
- Improve error handling and API test function.
- Code security reinforcement, in line with WordPress security specification.
= 1.0.1 =
- New OpenAI support, support for custom models and API Endpoint
- Optimize the interface and compatibility of Gemini and Hunyuan.
- Fix the problems of setting saving, API testing, batch translation, etc.
- Code security enhancement, remove unused files.
= 1.0.0 =
- First version, support Gemini, Tencent Hunyuan automatic translation.
- Recommended upgrade, improve compatibility and security, add OpenAI support.
== License ==
GPLv2 or later