=== Linguator AI – Auto Translate & Create Multilingual Sites  ===

Contributors: narinder-singh,satindersingh,coolplugins
Tags: translation, multilingual, languages, ai translation
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 2.1.4
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Translate your WordPress website into multiple languages with AI. Linguator makes creating multilingual sites simple, fast, and SEO-friendly.

== Description ==

https://youtu.be/TNSWCCmHQPg?si=LQXRkszBIFPMG9vg

**Linguator AI – Auto Translate & Create Multilingual Sites** is an all-in-one multilingual WordPress plugin designed for site owners who want to reach a global audience without **recurring fees**, **external SaaS platforms**, or **complex setups**.

Translate your **posts**, **pages**, **menus**, **categories**, **custom post types**, **media**, and **SEO data** using AI, and refine translations manually when needed, all from your WordPress dashboard.

== Want multilingual content without paying for monthly translation credits? ==
 Linguator uses **Chrome’s built-in AI** and **Google Translate**, so you can generate high-quality translations without external API keys or subscriptions.

https://youtu.be/20MbjUb6AnM?si=-1qipV1fFH89KtgT

[Check Live Demo](https://wordpress.org/plugins/translate-words/?preview=1) | [Learn more](https://linguator.com/?utm_source=twlmat_plugin&utm_medium=readme&utm_campaign=view_plugin&utm_content=learn_more) 

== AI Translation Made Easy for WordPress ==
* **Easy to install and use:** Linguator is quick to install and beginner-friendly, allowing you to get started in minutes. Simply install the plugin, run the setup wizard, select your languages, and start translating. No coding required.

* **Built for maximum compatibility:** Linguator is built for maximum compatibility across the WordPress ecosystem. It works seamlessly with popular editors such as **Elementor**, **Gutenberg**, and the **Classic Editor**. Whether you’re translating **WooCommerce product pages**, **custom post types**, or **Elementor landing pages**. 

* **Multilingual SEO:** The plugin follows WordPress and Google best practices. Each language version of your content contains, **language-specific URLs** with **SEO-friendly permalink structures**. Metadata can be translated helping search engines properly index your site in multiple languages and improve your global visibility.

* **Translation Quality:** Linguator allows you to generate fast **AI-powered translations** while still giving you full control. You can manually edit translations to improve accuracy or match your tone, translate **specific blocks** or **widgets inline**, and use **glossary support** to maintain consistent terminology across your site. 

### Multilingual & AI Translation Features

* **AI-Powered Automatic Translation:**   Save hours of manual work!. Linguator uses powerful AI translation engines to automatically translate your posts and pages into multiple languages — giving you high-quality, natural translations in one click.

* **Manual + Automatic Translation Control:** Translate your content automatically using AI, or fine-tune it manually for complete accuracy — Linguator gives you both options for full flexibility.

* **Elementor Page Translation:** Translate entire Elementor pages, including all sections, widgets, and content, without losing styles or design.

* **Gutenberg Block Compatibility:** Automatically translate content within Gutenberg blocks, including core blocks and popular third-party blocks like Spectra, Kadence, Stackable, Otter, and Essential.

* **Bulk Translation:** Instantly translate multiple posts, pages, or products at once with a single click, saving time and effort.

* **Inline Translation:** Translate specific widgets or blocks of content directly within the editor, without translating the entire page, using advanced AI-powered translation tools.

* **Media and Menu Translation Management:** Translate image titles, captions, alt text, and descriptions to match each language. Create separate navigation menus per language and let visitors switch between them.

* **Language Switcher:** Add a language switcher to your site with multiple display options, including Classic, Block-based, and Elementor widget styles, to easily switch languages.

 **Trusted by 80,000+ users worldwide**, Linguator is built by experts in AI translation — the same team behind [**LocoAI – Auto Translate for Loco Translate**](https://wordpress.org/plugins/automatic-translator-addon-for-loco-translate).
With [**580+ five-star reviews**](https://wordpress.org/plugins/automatic-translator-addon-for-loco-translate/#reviews), our plugins are proven to deliver quality and user satisfaction.


#### Service Provider 
This plugin offers AI translation services via Chrome's built-in AI APIs. Learn more about Chrome AI using the links below.

* [Chrome Built-in AI APIs Documentation](https://developer.chrome.com/docs/ai/built-in-apis)
* [Chrome Summarizer API Documentation](https://developer.chrome.com/docs/ai/summarizer-api)
* [Chrome Prompt API Documentation for Extensions](https://developer.chrome.com/docs/extensions/ai/prompt-api)

[Linguator AI on GitHub.](https://github.com/CoolPluginsTeam/translate-words)

== Credits ==

This plugin is a derivative work and a fork of the free version of  [Polylang](https://wordpress.org/plugins/polylang/) by WP SYNTEX.

While the core of this plugin is a fork of the free version, it incorporates the Abstract_Screen class structure originally found in the WP_Syntex\Polylang_Pro\Editors\Screens namespace of Polylang Pro. This architecture has been refactored into the Linguator\Modules\Editors\Screens namespace to ensure a unique environment, maintain compatibility, and prevent naming collisions with the original plugin.

This plugin is distributed under the terms of the GNU General Public License, version 3 (GPLv3). We are grateful to the original authors, Frédéric Demarle and the WP SYNTEX team, for their foundational work in the WordPress multilingual space.

**Use of 3rd Party Services:** This plugin connects to the Cool Plugins API to display information about related plugins inside the dashboard. It offers optional usage tracking and feedback submission on deactivation only after explicit user consent. Additionally, it connects to Google Translate (Google LLC) via [translate.googleapis.com](translate.googleapis.com) and [translate.google.com](translate.google.com) to translate post, page, and taxonomy content. This plugin also uses the [DataTables](https://datatables.net/) library in the admin interface to display/manage tabular data. DataTables is licensed under the [MIT License](https://datatables.net/license/mit). Please review our [Data Usage Policy](https://my.coolplugins.net/terms/usage-tracking/), [TOS](https://my.coolplugins.net/terms/), and [Privacy Policy](https://my.coolplugins.net/terms/privacy-policy/), [Google Terms](https://policies.google.com/terms) of Service and [Google Privacy Policy](https://policies.google.com/privacy).

== Screenshots ==
1. Linguator Language Switcher Preview.
2. Bulk Pages/Post Translation Preview.
3. Gutenberg Page Translation Preview.
4. Elementor Page Translation Preview.
5. Menu and language configuration.

== Installation ==
1. Log in to your WordPress dashboard.
2. Navigate to the Plugins section.
3. Search for "Linguator".
4. Click Install and then Activate the plugin.

That's it! Linguator AI – Auto Translate & Create Multilingual Sites is now installed and activated. You can start translating your website automatically using the power of AI.

**Language Configuration**

When you first activate Linguator, a simple Setup Wizard will guide you through configuring your multilingual website.
Follow these steps to complete the setup:

1. Choose the main language for your website. This will be the fallback language shown when a visitor's preferred language isn't available.
2. Select additional languages you want to support from the list of available languages.
3. Decide how different language versions will appear in your URLs (e.g., subdirectories like /fr/ or query parameters like ?lang=fr).
4. Turn on this option to automatically translate media details such as title, alt text, caption, and description for each selected language.
5. Choose your preferred translation source — Google Translate or Chrome's built-in AI translator — to handle your translations.
6. Choose how and where the language switcher will appear on your website so visitors can easily switch between languages.

That's it! The setup configuration has been successfully completed. You can now start translating your website content and make it fully multilingual.

== Frequently Asked Questions ==

= Transition Notice =
Translate Words is now maintained by [Cool Plugins](https://profiles.wordpress.org/coolplugins/) and will gradually evolve into our modern AI multilingual plugin, Linguator AI.

The current Translate Words feature set will remain available until 6 months. After this period, the plugin will fully transition to Linguator.

If you want to continue using a manual string translation workflow, we recommend migrating to the Loco Translate plugin, which offers enhanced stability, better performance, and active development.

You are not required to take immediate action. Your website will continue working normally during the transition period. A detailed migration panel is included inside the plugin settings with all guidance and support information.

= Which languages are supported? =
Linguator supports all languages that WordPress supports, including RTL languages.

= Is it compatible with all WordPress themes? =
Yes, Linguator is designed to work with any properly coded WordPress theme.

= Does it work with Elementor and Gutenberg? =
Yes, the Linguator plugin fully supports the translation of page editors like Gutenberg and Elementor. You can translate your content directly within these editors.

= Can I create different menus for each language? =
Yes. You can create and manage separate navigation menus for each language and let visitors switch between them.

= Where can I place the Language Switcher on my site? =
You can place it in menus, sidebars, headers, footers, or any widget-ready area. If you use Elementor, you can add it directly to your page or template using the Elementor widget.

= Can I translate media, such as images and videos? =
Yes. Linguator allows you to translate media metadata, including image titles, alt text, captions, and descriptions, ensuring your content is fully localized.

= Can it detect the visitor's browser language? =
Yes. Linguator includes an option to automatically detect the visitor's browser language and display the site in that language.

= How many languages can I add with Linguator? =
There is no limit. You can add as many languages as you want to your website using Linguator.

= How can I report security bugs? =
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage, and handle any security vulnerabilities. [Report a security vulnerability](https://patchstack.com/database/wordpress/plugin/translate-words/vdp).

= Why Use Linguator? =
* **Simple and Familiar Interface** – Built with WordPress standards in mind, Linguator feels natural and easy to use, even for beginners.
* **AI Power Without Extra Cost** – Leverage AI translation features for free — no need to pay for costly external AI credits.
* **No Monthly Fees or SaaS Dependency** – Linguator runs fully inside WordPress — once installed, it’s yours! No external API or subscription required.
* **Fully Compatible with Elementor & Gutenberg** – Translate visually designed pages effortlessly without breaking layouts.
* **Save Time with AI-Powered Translation** – Instantly translate your posts, pages, and menus using advanced AI translation technology.
* **Reach a Global Audience** – Translate your content into multiple languages and expand your website’s reach worldwide.
* **Build Trust with Localized Content** – Speak to visitors in their own language to increase engagement and conversions.
* **SEO-Optimized for Multilingual Sites** – Generate search-friendly URLs for every language to improve visibility in Google.
* **Lightweight & Optimized for Speed** – Linguator is built with performance in mind and doesn’t slow down your pages or website loading time.

== Changelog ==
> **Translate Words is evolving to Linguator**, our new AI-based multilingual solution.
> The current functionality will remain available until **6 months**.
> If you prefer a manual string translation workflow, we recommend **Loco Translate**.

= Version 2.1.4 | 3 April 2026 =
* Minor Textual changes.
* Fixed an issue with the Quick Edit page for unassigned languages.
* Minor fixes.

* Remove unused code.
* Improve code quality and security.

= Version 2.1.3 | 1 April 2026 =

* Remove unused code.
* Improve code quality and security.

= Version 2.1.2 | 26 March 2026 =

* Removed usage of HEREDOC/NOWDOC syntax and replaced with safer string handling methods.
* Improved plugin path and URL handling by replacing hardcoded paths with WordPress standard functions like plugin_dir_path() and plugin_dir_url().
* Strengthened REST API permission checks by adding proper capability validation for post creation actions.
* Fixed unescaped output in content filters, ensuring all dynamic data is properly escaped to prevent XSS vulnerabilities.
* Added missing nonce verification for user input handling to prevent CSRF attacks.
* Improved code quality and security by implementing proper input validation and sanitization.

= Version 2.1.1 | 20 March 2026 =

* Implemented strict REST API permission_callback using current_user_can('edit_posts') for lmat/v1 endpoints.
* Applied late escaping (esc_html, esc_attr, wp_kses_post) to all render callbacks and shortcode outputs.
*  Refactored CSS and JS to use wp_enqueue_style and wp_enqueue_script, removing inline <style> and <script> tags.
* Standardized unique prefixing (linguator_ ) across functions and classes to prevent conflicts.
* Resolved UI logic that hidden string-translation features based on external plugin status.

= Version 2.1.0 | 13 March 2026 =
* Ensured manual string translation functionality remains accessible even when Loco Translate is active.
* Replaced HEREDOC/NOWDOC syntax with standard PHP strings for better security scanning compatibility.
* Updated bundled DataTables library to the latest stable version.
* Added proper documentation in the readme for external services used by the plugin (Google Translate).
* Improved REST API permission checks and strengthened capability validation.
* Added missing nonce verification and improved input sanitization across admin and REST requests.
* Implemented proper sanitization for register_setting() fields.
* Replaced direct loading of WordPress core files with proper WordPress hooks.
* Removed debugging code such as error_reporting() from production.
* Improved escaping of variables and generated HTML output to prevent XSS vulnerabilities.
* Refactored global filters to avoid unintended site-wide behavior changes.
* Code quality, security, and compatibility improvements throughout the plugin.

= Version 2.0.7 | 5 March 2026 =
* Added proper attribution indicating that this plugin is a fork of the free Polylang plugin.
* Corrected the license information in the header and readme file.
* Minor textual changes.

= Version 2.0.6 | 3 February 2026 =
* Added translation for WPBakery Page Builder plugin.
* Code optimization.

= Version 2.0.5 | 14 January 2026 =
* Fixed Undefined constant error.

= Version 2.0.4 | 13 January 2026 =
* Code Improvemnets.
* Added Categories Filter in Quick Edit option.
* Fixed incorrect URLs.

= Version 2.0.3 | 7 January 2026 =
* Fixed incorrect initial date in the deactivation form.

= Version 2.0.2 | 7 January 2026 =
* Fixed Wrong initial version bug.
* Fixed a JSON error occurring during the initial plugin setup.

= Version 2.0.1 | 5 January 2026 =
* Fixed undefined array key issue.

= Version 2.0.0 (Major Update) | 3 January 2026 =
* Translate Words is now under new ownership by [Cool Plugins](https://profiles.wordpress.org/coolplugins/) and is actively maintained.
* Introduced **LinguatorAI**, a modern AI-based multilingual plugin.
* Added **Translate Words feature deprecation** Notice.
* Recommended **Loco Translate** for users who prefer a manual string translation workflow.
* Added **AI-powered automatic translation engine** with support for Google Translate and Local AI.
* Added **real-time translation support** for Gutenberg, Elementor, and Classic Editor.
* Added **Bulk Translation Tool** for posts, pages, and taxonomies with progress tracking.
* Added **Inline Translation Mode** to translate content block-by-block with live preview.
* Added **Page Translation Module** including SEO titles and meta descriptions.
* Added **Advanced Language Management Panel** with unlimited languages, RTL support, and browser language detection.
* Added **Language Switcher Options** – widget, block, Elementor widget, and menu integration.
* Added **Custom Field Translation Manager** for ACF and meta-based fields.
* Improved migration guidance and helpful links.
* Improved stability and minor internal improvements.
* General cleanup and maintenance.

= Version 1.2.6 | 6 February 2024 =
* Improved the previous fix. It did not pick up translations where words or phrases contained punctuation.

= Version 1.2.5 | 30 January 2024 =
* Tweaked replacements to only replace whole words and not parts of words.

= Version 1.2.4 | 4 March 2023 =
* Fixed PHP 8.2 error.

= Version 1.2.3 | 1 January 2023 =
* Fixed undefined array key notice in the admin area.

= Version 1.2.2 | 12 July 2022 =
* Applied case-sensitive replacements first, followed by case-insensitive ones.

= Version 1.2.1 | 22 May 2022 =
* Fixed an issue where new translations were not saving properly.
* Reduced duplication to prevent the issue from recurring.

= Version 1.2.0 | 24 January 2022 =
* Fix bug with the remove button not working. Thanks @capbussat for the suggested fix and others for the reports!

= Version 1.1.1 | 23 November 2021 =
* Escaped JavaScript output.

= Version 1.1 | 23 November 2021 =
* Added support for translating Gutenberg editor strings using JavaScript localization.

= Version 1.0.2 | 3 May 2021 =
* Updated register_setting to use updated properties.
* Fixed translation string replacement.

= Version 1.0.1 | 30 April 2021 =
* Simplified string replacement logic for better performance.

= Version 1.0.0 | 30 April 2021 =
* Initial release.

== Upgrade Notice ==
= 2.0.0 =
Translate Words is transitioning to our new AI-powered multilingual plugin Linguator AI. Existing functionality will remain available until around 31 December 2026. For manual string-based translation workflows, we recommend migrating to Loco Translate.
