Linux 软件免费装
Banner图

AF Translate - AI Translation Editor, PO Editor & POT Generator for WordPress

开发者 afthemes
更新时间 2026年7月31日 14:35
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

language i18n translation multilingual ai translation

下载

1.0.0 2.0.0 3.0.0 3.0.1 4.0.0 5.0.0

详情介绍:

Translating a WordPress website should not be a painful, time-consuming chore. For years, localizing WordPress plugins and themes meant relying on clunky desktop software like Poedit, copying strings line-by-line in manual PO editors, or dealing with expensive translation services. To make matters worse, the moment a plugin or theme updates, custom translation files get wiped out instantly—ruining hours of hard work. AF Translate redefines WordPress localization for the modern web. Built directly into your WordPress dashboard, AF Translate bridges traditional .po / .mo / .json file management with cutting-edge Artificial Intelligence. It automatically scans your active setup, generates clean .pot translation templates on the fly, and translates thousands of interface strings in a single click using your own API keys for OpenAI (GPT-4o), Anthropic Claude, Google Gemini, xAI (Grok), DeepL, and Google Translate. Whether you need to fix a quick typo, generate script translations for modern React/Gutenberg components, or translate giant commercial plugins into dozens of global languages, AF Translate delivers instant, developer-grade results without monthly middleman fees. 🚀 Why AF Translate Beats Legacy PO Editors

安装:

Setting up AF Translate takes less than 2 minutes. Follow this step-by-step quick-start guide to install the plugin, connect your AI API keys, and run your first automated bulk translation. Step 1: Install & Activate AF Translate Option A: Directly from your WordPress Dashboard (Recommended)
  1. Navigate to Plugins > Add New Plugin in your admin sidebar.
  2. Search for "AF Translate" or "AF Translate AI".
  3. Click Install Now next to AF Translate, then click Activate. Option B: Manual Zip Upload
  4. Download the plugin zip package from WordPress.org.
  5. Go to Plugins > Add New Plugin > Upload Plugin.
  6. Choose the af-translate.zip file and click Install Now.
  7. Click Activate Plugin.
Step 2: Configure Your AI Translation Provider (API Keys) AF Translate uses a Bring Your Own Key (BYOK) model so you get direct wholesale API pricing without middleman subscription markups.
  1. In your WordPress sidebar, go to AF Translate > AI Settings or Translation Providers.
  2. Select your preferred default AI translation engine:
  3. OpenAI: Enter your API key and choose your preferred model (gpt-4o or gpt-4o-mini).
  4. Anthropic Claude: Paste your Claude API key (claude-3-5-sonnet) for bulletproof HTML and code placeholder preservation.
  5. Google Gemini: Enter your Gemini API key for ultra-fast, cost-effective high-volume translation.
  6. xAI (Grok): Input your Grok API key for deep contextual language understanding.
  7. DeepL Pro / Free: Add your DeepL key (supports both standard commercial keys and :fx free-tier keys).
  8. Google Translate / Microsoft / Lecto AI: Connect your credentials in the Translation Providers tab.
  9. Click Save Changes. You can test your connection instantly inside the dashboard.
Step 3: Select a Plugin, Theme, or WordPress Core to Translate
  1. Navigate to AF Translate > Plugins or AF Translate > Themes.
  2. Locate the plugin or theme you want to localize (e.g., WooCommerce, Elementor, your active child theme, or WordPress Core).
  3. Click Manage Translations next to your selected project.
Step 4: Add a New Language or Generate a POT Template Step 5: Run 1-Click Automated Bulk AI Translation
  1. Open your newly created language workspace.
  2. Click the Bulk AI Translation button at the top of the workbench.
  3. Select your AI engine, set your chunk batch size, and click Start Bulk Translation.
  4. Watch the progress bar as the AI processes, translates, and formats hundreds of strings in background loops without triggering PHP server timeouts.
  5. Review the translated text side-by-side in the visual sandbox editor and tweak any specific strings manually if desired.
Step 6: Save, Compile & Auto-Deploy (wp.i18n Compatible)
  1. Click Save & Compile.
  2. AF Translate automatically generates and compiles:
  3. .po source files for human inspection.
  4. .mo binary files for WordPress PHP execution.
  5. .json script translations for modern Gutenberg React components and JavaScript wp.i18n scripts.
  6. Your compiled translations are safely stored in wp-content/uploads/af-translate/—making them 100% update-proof so they will never be overwritten when plugins or themes update!

屏幕截图:

  • **Bulk AI Translation:** Translate thousands of strings automatically using your preferred AI provider.
  • **Project Dashboard:** Manage translation projects, languages, and overall progress.
  • **Language Progress:** Track completion, pending strings, file names, and last modified dates.
  • **Add New Language:** Create translation files from 100+ supported languages.
  • **Import Translations:** Import existing .po files into your workspace.
  • **Plugins Dashboard:** Translate all installed WordPress plugins from one place.
  • **Themes Dashboard:** Manage translations for themes and child themes.
  • **AI Settings:** Choose your default AI translation engine.
  • **Translation Providers:** Configure DeepL, Google Translate, Microsoft Translator, Lecto AI, and OpenAI-compatible APIs.
  • **Advanced AI Models:** Connect OpenAI and Claude with custom models and prompts.
  • **More Advanced AI Models:** Connect Gemini, and xAI with custom models and prompts.

升级注意事项:

5.0.0 Major JavaScript & Security Release. Upgrade immediately to deploy native JS script translation support (wp.i18n & l10n.php), activate the high-performance Delta Compilation Engine for faster language updates, and apply comprehensive filesystem security hardening across all workflows. 4.0.0 Performance & Stability Update. Upgrade immediately to benefit from a highly optimized, refactored AI engine architecture and to deploy critical live-server caching fixes that ensure instant, zero-delay rendering of bulk translations on Linux and LiteSpeed production environments. 3.0.0 Major Feature & Performance Release. Upgrade immediately to deploy the brand-new WordPress Core translation engine, access streamlined interface workflows for your plugins and themes, and experience a resource-safe system activity logger with zero front-end overhead. 2.0.0 Major Automated AI Translation Release. Upgrade immediately to deploy the new centralized AI Settings Hub, connect your dashboard to top cloud intelligence routers, and run rapid site-wide background bulk automated translation processes.

常见问题:

Does this plugin affect frontend loading speeds or Core Web Vitals?

No. Speed protection is a core architecture priority. All automated background AI generations and API calls execute strictly inside the admin dashboard. It introduces zero visitor-facing scripts, keeping your public loading times pristine.

How does AF Translate handle JavaScript script translations (wp.i18n)?

As of version 5.0.0, AF Translate natively supports WordPress core l10n.php loading routines. It automatically extracts JS textdomain strings, compiles matching .json translation chunks, and places them in the correct asset pathways for modern React and Gutenberg block scripts.

Where are the generated translation files stored?

To protect your translations from being erased when a theme or plugin updates, all files are safely isolated inside wp-content/uploads/af-translate/. This guarantees your work remains completely untouched during continuous update lifecycles.

Which AI model is best for protecting code syntax during translation?

The Anthropic Claude 3.5 Sonnet engine is highly recommended. It enforces a strict rule set that isolates web layout text from underlying code variables, preventing the AI from modifying developer symbols, shortcodes, or HTML tags.

Can I use both free and commercial keys for DeepL automation?

Yes. The automated DeepL configuration panel natively recognizes and routes both commercial API keys and free tier subscriptions (which typically end with the :fx identifier format).

Can I translate themes or plugins that don't have default language files?

Yes! Our smart built-in code reader automatically parses the raw file structures and compiles a fresh, working .pot translation template for you with one click.

Do I need an API key to use the AI translation features?

Yes. For premium engines like OpenAI, Claude, Gemini, and Grok, you will need to input your own API key. This gives you direct control over your usage costs without paying middleman markups.

Can this plugin automatically translate my live page or post content?

AF Translate is specifically engineered to translate WordPress themes, plugins, and core system strings (the code-level interface). If you need to translate your actual post and page content dynamically, this plugin works perfectly alongside frontend content switchers.

Will my code's original layout structure and HTML tags be preserved by the AI?

Yes. Our system uses advanced structural context framing when communicating with the AI. This explicitly instructs the models to leave shortcodes, HTML tags, and PHP string variables completely untouched while translating only the human-readable text.

What administrative user permissions are required to use this plugin?

To ensure server safety, block unauthorized text injections, and secure file modification pathways, execution access is limited strictly to user accounts carrying full Administrator capabilities.

更新日志:

5.0.0 4.0.0 3.0.0 2.0.0 1.0.0