=== Limit Auto Translator (WPML + GPT + DeepL) by LiMiT Agency ===
Contributors: limitagency
Donate link: https://www.limit.agency/
Tags: multilingual, translation, wpml, openai, deepl, automation, localization, seo, i18n
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automate multilingual publishing in WordPress with WPML. Translates Title/Excerpt/Content using GPT first and DeepL as fallback, preserves HTML, and links languages via WPML. Queue with WP-Cron for scale. Optional footer credit link to LiMiT Agency. Settings at **Settings → Limit Auto Translator**.

== Description ==

**Limit Auto Translator** helps agencies and publishers localize content in seconds.

**Highlights**
* Hooks on save (or queues via WP-Cron) for selected post types.
* **GPT first**; one retry; **DeepL fallback** (optional).
* HTML/tag-aware with basic structure validation.
* Creates and links translations using **WPML**.
* Copies categories/tags. Optional footer credit link to **LiMiT Agency**.
* **Settings page**, **WP-CLI commands**, and **rate limiting**.
* Designed for performance and safety (per-post lock, retries, timeouts).

**Requirements**
* WordPress 5.8+ (tested up to 6.8).
* PHP 7.4+.
* **WPML** (to manage language relationships).
* OpenAI API key (or environment variable `OPENAI_API_KEY`).
* Optional: DeepL API key (or use plugin field).

**Credits:** Built by [LiMiT Agency](https://www.limit.agency/).

== Installation ==

1. Upload the folder `limit-auto-translator-wpml-gpt-deepl-by-limit-agency` to `/wp-content/plugins/`, or upload the ZIP via **Plugins → Add New → Upload Plugin**.
2. Activate the plugin.
3. Go to **Settings → Limit Auto Translator** and configure:
   * **Source language** (e.g. `en`).
   * **Target languages** (comma list, e.g. `fr,es,ro`).
   * **Post types** to automate (e.g. `post,page`).
   * **OpenAI API key** (or set `OPENAI_API_KEY` in server env).
   * (Optional) **DeepL API key** for fallback.
   * Choose **Run mode**: *Queue (WP-Cron)* or *Immediate (on save)*.
   * Optional **credit footer** text + link (defaults to LiMiT Agency).

4. Publish or update any post in the **source language** to trigger translations.

**Environment variables (optional, recommended)**
Set in PHP-FPM pool or server env:
