=== WPress Translate ===
Contributors: wpressplugins
Tags: translation, ai, multilingual, language switcher, openai, translation cache
Requires at least: 6.4
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI-assisted translation for public WordPress pages with a language URL, language switcher, local translation cache and optional preload queue.

== Description ==
WPress Translate helps make your public WordPress posts and pages available in a second language without requiring you to duplicate content.

A translated page gets its own language-prefixed URL (for example, /es/). On first view, uncached text segments are sent to the OpenAI Responses API. Translations are stored in a local WordPress database table and reused for matching text. Optional preloading visits public translation URLs in the background through WP-Cron.

Features:
* Configurable source and target language
* Language-prefixed translated URLs for homepage, posts, pages and resolvable public post types
* OpenAI API integration (you supply an API key; usage may incur fees)
* Locally cached translated text segments
* Floating switcher or [wpress_translate_switcher] shortcode
* PHP function: wpress_translate_language_switcher()
* Translation preload queue and progress status
* Explicit, non-destructive import of Solid.Translate settings/cache
* Alternate hreflang tags and compatible translated canonical URL filters on public single pages/homepage
* Safety checks to avoid translating logged-in pages, cart, checkout and account pages

Important limitations:
* One target language at a time, not a full multilingual CMS/editor.
* Translates server-rendered HTML text; content injected entirely by JavaScript or in attributes is not necessarily translated.
* For a large website, initial translation can require many API calls and public visits may only partially translate on the first request. Use preload for more consistent results.
* No professional translation review is included. Verify critical/legal text manually.
* AI API requests send uncached public page text to the API provider. Review your privacy notices and data handling obligations.
* Routes for some dynamic archives, filters and complex custom rewrites are not guaranteed.
* Never run two page-translation plugins at the same time; deactivate Solid.Translate before using WPress Translate.
* Avoid private, membership and personalized content. Test staging first.

== Installation ==
1. In WordPress Admin, go to Plugins > Add New > Upload Plugin.
2. Upload the WPress Translate ZIP and activate it.
3. Open WPress Translate from the admin sidebar.
4. Enter a valid OpenAI API key and choose source/target language and language code.
5. Turn on AI translation and Save Settings.
6. Place the switcher with [wpress_translate_switcher] or enable the floating switcher.
7. Check a translation URL, e.g. /es/ when targeting Spanish.
8. Optionally enable preload and click Start full preload. WP-Cron must be running.

== Frequently Asked Questions ==
= Does it change my existing posts? =
No. It translates HTML on translated URLs. Source posts are not overwritten.

= Does it send text to an external API? =
Yes. Uncached public website text is sent to OpenAI when translating. Text translations are stored locally for reuse. The API key is stored in the WordPress options database.

= Can it translate multiple target languages? =
Version 1.0.0 supports one target language at a time.

= Can it migrate Solid.Translate data? =
Yes. If Solid.Translate settings are present, the WPress Translate admin offers an explicit import button. You may opt to copy its cache. The original plugin's tables/options are not deleted. Turn off Solid.Translate before enabling WPress Translate.

= Will this guarantee multilingual SEO results? =
No. It can output language alternate links and compatible canonical URLs for supported pages, but site SEO, indexability, coverage, quality and rankings require validation.

== Changelog ==
= 1.0.0 =
* New WPress Plugins branding and English interface.
* Redesigned WordPress admin dashboard.
* Separate options, cache table and cron hooks.
* Optional non-destructive Solid.Translate import.
* Public-page translation privacy guards and plugin conflict warning.
* Default translation is off until configured.
* Per-request translation budget to reduce slow first loads.
* Added hreflang and compatible canonical helpers for supported public URLs.
