=== LangForge ===
Contributors: avakodeforge
Donate link: https://avakode.com
Tags: multilingual, translation, ai, localization, language-switcher
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.24
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Multilingual & translation plugin — URL routing, post & string translation, language switcher, hreflang SEO, glossary, WooCommerce. WPML-compatible.

== Description ==

**Lang Forge** is a modern multilingual plugin that handles multilingual URL routing (4 URL formats), manual post and string translation, a language switcher, hreflang SEO, RTL layouts, a glossary, WooCommerce, unlimited languages, and one-click migration from WPML / Polylang / TranslatePress. It ships a REST API and WP-CLI commands and is a drop-in WPML compatibility layer. AI translation is available as the **Lang Forge Pro** add-on.

= Free =
* Unlimited languages
* Multilingual URL routing — 4 formats (directory `/fr/`, query `?lang=fr`, subdomain, domain mapping)
* Manual post / page / CPT translation linking
* Manual string translation (auto-registered via gettext)
* Language switcher (widget / shortcode / admin bar)
* hreflang sitemap
* Glossary
* WooCommerce product and store string translation
* WPML compatibility layer (`icl_object_id()`, `icl_get_languages()`, etc.)
* REST API + WP-CLI commands
* One-click migration from WPML / Polylang / TranslatePress
* RTL support (ar/he/fa/ur/ku)

= Pro =
* AI translation with translation memory
* Visual editor (side-by-side WYSIWYG translation)
* Frontend translation
* Elementor + ACF integration
* Content diff + Translation QA
* Analytics dashboard
* Import / export PO + XLIFF
* Bulk AI translation, translator roles, media/comment translation, live preview

Part of the **Forge Suite** — bundle includes SEO Forge, Form Forge, Field Forge.

== Third-Party Services ==

Lang Forge connects to the following third-party services. Basic translation, the language switcher, string translation, and hreflang work fully offline with no external calls — data is sent only when you use an AI feature.

* **Avakode API** (https://avakode.com) — powers AI translation and AI quality checks, and validates your license. When you run an AI translation or QA check, the source post content, the target language, your site URL, and your license key are sent. The Avakode API routes AI requests to OpenAI and/or DeepL on your behalf. Terms: https://avakode.com/terms — Privacy: https://avakode.com/privacy
* **OpenAI** (used by the Avakode API to perform AI translation) — Terms: https://openai.com/policies/terms-of-use — Privacy: https://openai.com/policies/privacy-policy
* **DeepL** (used by the Avakode API to perform AI translation) — Terms: https://www.deepl.com/pro-license — Privacy: https://www.deepl.com/privacy
* **Anonymous usage analytics (opt-in, OFF by default)** — Only if you explicitly opt in from the Lang Forge settings, the plugin sends anonymous product-usage telemetry to the Avakode API (https://avakode.com/telemetry): a random install ID (UUID, not tied to your site URL or any account), your bucketed WordPress and PHP version ranges, the plugin version, and aggregate feature-usage event counters. It is sent ONLY after you opt in and can be disabled at any time. It never sends your site URL, email address, post or form content, or license key. Privacy: https://avakode.com/privacy

== Installation ==

1. Upload `langforge` to `/wp-content/plugins/`, or install via Plugins → Add New.
2. Activate the plugin.
3. Go to **Lang Forge → Settings** and enable your target languages.
4. (Optional) Connect to Avakode for Pro features at **Lang Forge → Connect**.

== Frequently Asked Questions ==

= Does Lang Forge work with my theme? =

Yes — Lang Forge uses standard WordPress hooks (`the_content`, `get_the_title`, hreflang via `wp_head`). No theme-specific integration needed.

= Can I migrate from WPML / Polylang / TranslatePress? =

Yes. Lang Forge ships with a migration tool that imports translated posts, string translations, and language URLs. The tool is non-destructive — your source plugin stays installed until you confirm the migration.

= How much does AI translation cost? =

AI translations consume Forge Credits (separate from the subscription). One credit ≈ one short paragraph. Credits don't expire.

= Is my content sent to OpenAI? =

Only the text being translated is sent to the Avakode AI proxy, which forwards it to OpenAI / DeepL. No personal data, no admin info, no URLs.

== Screenshots ==

1. Settings — languages, URL format, defaults
2. Visual editor (Pro) — side-by-side translation
3. String translation — theme + plugin strings
4. Language switcher — front-end widget
5. Migration tool — import from WPML

== Changelog ==

= 1.0.24 =
* Security hardening: all dynamic output is now escaped late with the context-appropriate function (esc_html/esc_attr/esc_url, esc_html__ for translated strings used as format strings, and wp_kses for trusted pre-built admin markup). No behavioural changes.
* The glossary CSV export now neutralises CSV/formula injection in exported cells.

= 1.0.23 =
* Free now supports an unlimited number of languages with no plan-based cap — removed all license-gated language-limit code (no "locked" language rows, no over-limit notice, no limit on saving).
* Tightened the glossary REST list endpoint to the same administrator capability as glossary management.

= 1.0.22 =
* Hardened WP-CLI export: files are now always written to a plugin-slug folder inside the uploads directory (wp-content/uploads/langforge/) instead of an arbitrary path, so nothing is ever written into the plugin folder.
* Uninstall cleanup now only removes data under the plugin's own unambiguous prefix, so unrelated options/metadata belonging to other plugins are never deleted.

= 1.0.18 =
* New: Support menu item that opens the Avakode support dashboard.
* New: Opt-in anonymous usage analytics (OFF by default) — see Third-Party Services.
* New: Contextual, dismissible Pro feature tips on the plugin dashboard (Free users only).


= 1.0.15 =
* WordPress.org compliance and licensing hardening.
* Pro entitlement is now resolved by the Lang Forge Pro add-on; the free plugin bundles no licensing SDK.
* The plugin no longer modifies admin notices belonging to other plugins.
* readme metadata cleanup.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.18 =
Adds a Support menu, optional anonymous analytics (off by default), and dashboard Pro tips.


= 1.0.15 =
Licensing and WordPress.org compliance improvements.

= 1.0.0 =
Initial release.
