=== TranslatePlus – AI Website Translation ===
Contributors: translateplus, meetsohail
Tags: translation, multilingual, translate, woocommerce, seo
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Translate your whole WordPress site into 110 languages. Automatic and manual translation, SEO-ready URLs, WooCommerce and page builders.

== Description ==

TranslatePlus makes your WordPress site multilingual in minutes. Connect a free [TranslatePlus](https://translateplus.io) account, pick your languages, and translate everything automatically, then refine any wording by hand.

Every feature is included for free. You only pay for the translation credits you use, and the translation memory makes sure you never pay twice for the same sentence.

= Translation =

* **Automatic translation** of posts, pages, products, custom post types, categories, tags and menus, in the background as you publish.
* **Manual translation** in a side-by-side editor, or by clicking text directly on your live site with the visual editor. Works without credits.
* **Translation memory**: every sentence is stored and reused for free; your manual edits are reused everywhere the text appears again.
* **Smart updates**: when you edit the original, only the changed sentences are re-translated and manual edits are kept.
* **Glossary**: brand names that must never be translated, and forced translations per language.
* **Theme and plugin text**: interface strings are discovered as pages render and translated in bulk. Optionally, official WordPress.org language packs can be installed for your languages.
* **Review workflow**: a Translator role limited to chosen languages, "needs review" status, and email notifications.

= SEO =

* Every language gets its own crawlable URL: subdirectory (`/fr/`), subdomain, separate domain or query parameter.
* Translated URL slugs, `hreflang` and `x-default` tags, `<html lang>`, and sitemaps that list every language.
* Yoast SEO, Rank Math, SEOPress and All in One SEO titles and descriptions are translated, with their variables protected.

= Fast by design =

Translations are created when you save, never when a visitor loads a page. Translated pages are regular WordPress posts that work with every page cache and CDN.

= Integrations =

* **WooCommerce**: products, variations, attributes, shop pages, cart, checkout and order emails in the customer's language. Prices, stock and SKUs stay in sync across languages.
* **Page builders**: Gutenberg, Elementor, Divi, Bricks and WPBakery. Layout is preserved; only text is translated.
* **Custom fields**: ACF (including repeaters, flexible content and options pages) and Meta Box, with a Translate / Copy / Ignore rule per field.
* **Language switcher**: block, menu item, shortcode `[translateplus_switcher]` and a floating switcher. Optional browser-language redirect that works with page caching and never redirects search engines.

= For agencies and developers =

* XLIFF and CSV export/import for professional translators and CAT tools.
* One-click migration from WPML, Polylang and TranslatePress, keeping existing translations.
* WP-CLI: `wp translateplus translate`, `status`, `strings`, `export`, `import`, `migrate`.
* REST API, actions and filters, multisite support.
* Your API key is encrypted in the database (or defined as `TRANSLATEPLUS_API_KEY` in `wp-config.php`) and is only used server-side.

== External services ==

This plugin sends content to the TranslatePlus API (https://api.translateplus.io) to translate it. Text is sent only when you or your scheduled jobs translate content, strings or emails: the post title, content, excerpt, translatable custom fields, interface strings, or email subject and body. No visitor data is sent, and nothing is sent on page views.

If you enable "Install official WordPress translations" in the settings, the plugin also downloads translation files from WordPress.org (https://wordpress.org) for your languages, using WordPress's built-in language pack installer.

* TranslatePlus terms: https://translateplus.io/terms-of-service
* TranslatePlus privacy policy: https://translateplus.io/privacy-policy

== Installation ==

1. Install and activate the plugin.
2. Open **TranslatePlus** in your dashboard and follow the setup: create a free account, paste your API key, choose languages and URL structure.
3. Go to **TranslatePlus → Translate site** to translate existing content, or let new content translate automatically as you publish.
4. Add the language switcher as a block, menu item or shortcode, or keep the floating switcher.

== Frequently Asked Questions ==

= Does translation slow down my site? =

No. Translation happens when content is saved or in background jobs. Visitors get regular, cacheable pages.

= Can I edit machine translations? =

Yes: in the side-by-side editor (TranslatePlus → Translations), visually on the front end via "Translate page" in the admin bar, or in the normal WordPress editor. Manual edits are never overwritten automatically.

= What happens if I run out of credits? =

Background jobs pause and resume where they stopped once you add credits. Existing translations stay online, and manual translation keeps working.

= Do I need pretty permalinks? =

Subdirectory, subdomain and domain URLs need pretty permalinks. On plain permalinks, use the "Query parameter" URL structure.

= Where is the source code of the JavaScript files? =

The unminified source of the admin app and block editor panel is included in `assets/src/`. Rebuild the files in `build/` with `npm install && npm run build` (uses @wordpress/scripts).

= Is TranslatePlus free? =

The plugin is free and every feature is included. Automatic translation uses credits from your TranslatePlus account. Manual translation, the glossary and the translation memory never use credits.

= How many languages are supported? =

More than 110 languages, including right-to-left languages such as Arabic and Hebrew, and regional variants such as Brazilian Portuguese and Simplified and Traditional Chinese.

= How much will it cost to translate my site? =

Before every bulk translation, TranslatePlus shows exactly how many characters will be translated. Text that is already in your translation memory is free and is not counted.

= Can I switch from WPML, Polylang or TranslatePress? =

Yes. Go to **TranslatePlus → Tools → Migrate**. Existing translations and language links are imported, so you don't pay to translate them again.

= Is my content safe? =

Text is sent over HTTPS to the TranslatePlus API only when it is translated. No visitor data is sent. See the External services section below for details.

= What happens when I uninstall? =

Plugin settings and tables are removed. Translated posts are normal WordPress posts and are kept.

== Screenshots ==

1. Dashboard: credits, translation coverage per language and a getting-started checklist.
2. Translate your whole site: pick content and languages and see the cost estimate before translating in the background.
3. Side-by-side editor with a review status for every sentence.
4. Translations overview with the status of every post in every language.
5. Visual editor: click any text on your live site to edit its translation.
6. Translations panel in the block editor.
7. Language switcher on a translated page with SEO-friendly language URLs.
8. Settings: URL structure, automation, language switcher and custom fields.

== Changelog ==

= 1.0.5 =
* First public release on WordPress.org.
* The Translate site screen counts only original content, not existing translations.
* The TranslatePlus menu stays highlighted in the translation editor.
* Password-protected posts are only available for translation to users who can edit them.
* The translations list checks access to each post, including scheduled posts.
* A translator whose assigned languages are all removed no longer gets access to every language.
* Saving a string checks the language of the string itself.
* Table names in database queries use identifier placeholders.

= 1.0.4 =
* Translation endpoints and exports check access to each post: only translatable content the user can read.
* Users without review rights create translations as "pending review", and their changes to published translations wait for a reviewer's approval.
* All database queries use prepared statements.

= 1.0.3 =
* Requires WordPress 6.9 or later.
* Updated Action Scheduler to 4.2.0.
* Request data from the server environment is sanitized before use.
* Admin styles are enqueued instead of printed inline.
* Visible interface strings are detected with the WordPress 6.9 template output buffer instead of a custom output buffer.
* XLIFF/CSV imports only accept segments that exist in the post and filter HTML for users without the unfiltered_html capability.

= 1.0.2 =
* Official TranslatePlus icon in the admin menu, plugin screens, block editor panel, Language Switcher block and admin bar.

= 1.0.1 =
* Security: all database queries use prepared statements; error messages are escaped.
* Language switcher redirect and visual editor scripts use the WordPress script APIs.
* Installing WordPress.org language packs is now an opt-in setting.
* Admin screens work when the site is opened on a different host name (e.g. www vs. non-www).
* Compatibility with SQLite databases.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.5 =
First public release on WordPress.org, with access checks for password-protected and scheduled posts.
