=== LATW AI Translator for WPML ===
Contributors: szymon0zawadzki
Tags: translation, wpml, ai, openai, multilingual
Requires at least: 6.2
Tested up to: 6.9
Stable tag: 1.1.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically translate WordPress content using OpenAI LLM with WPML integration.

== Description ==

LATW AI Translator for WPML is a powerful WordPress plugin that leverages OpenAI's language models to automatically translate your content. It integrates seamlessly with WPML to provide high-quality, AI-powered translations.

= Features =

* **AI-Powered Translations** - Uses OpenAI GPT models for natural, context-aware translations
* **WPML Integration** - Works seamlessly with WPML for multilingual site management
* **Elementor Support** - Translates Elementor page builder content including widgets, tabs, accordions, and more
* **ACF Support** - Translates Advanced Custom Fields content
* **Batch Processing** - Queue and process multiple translations efficiently
* **Custom Prompts** - Customize translation prompts for your specific needs
* **SEO Friendly** - Work with Yoast SEO, Rank Math SEO. Translates meta titles and descriptions

= Supported Content =

* Post titles, content, and excerpts
* Custom post types
* Elementor widgets and modules
* ACF fields
* Yoast SEO and RankMath meta data

= Requirements =

* WordPress 6.2 or higher
* PHP 7.4 or higher
* WPML plugin (required)
* OpenAI API key

= LATW AI Translator for WPML Versions =

**LATW AI Translator for WPML Free:**
* Translate content to English
* Full access to translation workflow
* Elementor and ACF support
* Batch processing
* No time limits

**LATW AI Translator for WPML Pro (Optional):**
* Translate to all languages configured in WPML
* Priority support
* Automatic updates
* Commercial use

More information about the Pro:
https://llm-automatic-translation.top/

= Third-Party Services =

This plugin connects to the following external services:

**OpenAI API**
This plugin sends content to OpenAI's API for translation processing.

* Service URL: https://api.openai.com/
* Privacy Policy: https://openai.com/privacy/
* Terms of Use: https://openai.com/terms/

Your content is sent to OpenAI only when you initiate a translation. No data is sent without user action.
The plugin does not store, log, or cache any translated content.
All requests are sent directly from the user's WordPress server to OpenAI.

== Installation ==

1. Upload the plugin
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Ensure WPML is installed and activated
4. Go to Settings > AI Translator to configure the plugin
5. Enter your OpenAI API key
6. Set translation options
7. Start translating your content

== Frequently Asked Questions ==

= What can I do with the free version? =

The free version allows you to translate all your content to English. All features are available.

= How do I get a Pro license? =

Visit [our website](https://llm-automatic-translation.top/) to purchase a Pro license. Once purchased, you'll receive a license key to enter in the plugin settings.

= Do I need WPML to use this plugin? =

Yes, WPML is required. This plugin extends WPML's translation capabilities with AI-powered automatic translations.

= Where do I get an OpenAI API key? =

You can get an API key from OpenAI's website at https://platform.openai.com/api-keys. You'll need to create an account and add billing information.

= How much does translation cost? =

Translation costs depend on the OpenAI model you choose and the amount of content. GPT-5-nano is the most cost-effective option. The plugin shows estimated costs before translation. Note: OpenAI API costs are separate from the Pro license.

= Which OpenAI models are supported? =

The plugin supports GPT-5, GPT-5-mini, GPT-5-nano models.

= Can I customize translation prompts? =

Yes, you can add a website description and custom instructions to improve translation quality and context.

= Does it work with page builders? =

Yes, the plugin has full support for Elementor, including widgets like tabs, accordions, sliders, testimonials, and more.

= How are translations queued? =

Translations are processed using WordPress Cron for reliable background processing without timeouts.

= What happens when my license expires? =

When your license expires, you can continue using the plugin version you have, but you won't receive updates. To access newer versions, you'll need to renew your license. The English only version continues to work without any license.

== Screenshots ==

1. Main translation dashboard
2. Translation queue management

== Changelog ==

= 1.1.1 =
* Translate categories
* Add new category when no translated category exists
* Show posts needing translation based on WPML data
* Manual check responses button
* Save timestamps in UTC
* Fix error message for max 50 translations queue limit
* Save Elementor data directly to avoid re-encoding issues
* More debug logs

= 1.1.0 =
* Initial public release
