=== TeknoTok AI Translator ===
Contributors: teknotok
Tags: translate, translation, multilingual, woocommerce, ai
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Translate your entire WordPress and WooCommerce website into a multilingual storefront with one click using artificial intelligence.

== Description ==

TeknoTok AI Translator is a lightweight, high-performance plugin that uses advanced Artificial Intelligence to translate your WordPress pages, posts, menus, categories, and tags automatically in the background.

Unlike traditional translation plugins that bloat your pages and slow down your server, TeknoTok AI Translator processes translations asynchronously in small batches and caches the results in a local translation memory database table. This ensures maximum page load speeds, reduced server resource usage, and significant token cost savings.

This plugin connects to the secure **TeknoTok Translation Gateway** (https://soft.teknotok.com) to route translation requests to AI models (like OpenAI GPT-4) and return natural-sounding translations tailored to your target locale.

### Key Features:
* **One-Click Setup:** Automatically detects your site's default language and guides you through configuring target languages.
* **Background Queue:** No timeouts or browser freezes! Translations are processed in background tasks using WordPress Action Scheduler or WP Cron.
* **Translation Memory:** Saves translated content segments locally. If content doesn't change, the plugin never calls the API again, keeping your translation costs low.
* **Elegant Language Switcher:** Display a floating switcher in the bottom-right or bottom-left of the page, hook it into your header/footer, or insert it anywhere via the `[teknotok_language_switcher]` shortcode.
* **Browser Language Detection:** Offers a polite suggestion banner or redirect option if a visitor's browser language matches one of your translated languages.
* **Premium Upgrade Available:** A Pro version is available to unlock multiple concurrent target languages, SEO plugin integrations (Yoast, Rank Math), and WooCommerce product field translation.

### Third-Party Service Disclosure
This plugin relies on the **TeknoTok Translation Gateway** (https://soft.teknotok.com) to process translations. 
* **Terms of Service:** https://soft.teknotok.com/terms/
* **Privacy Policy:** https://soft.teknotok.com/privacy/
* **Free Quota:** The plugin provides a lifetime free translation quota upon activation. If you exceed this quota or require premium integrations (e.g., WooCommerce translation), you can upgrade to a premium license at soft.teknotok.com.

== Installation ==

1. Upload the entire `teknotok-ai-translator` directory to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Access the 'AI Translator' menu in your WordPress dashboard to run the setup wizard and select your target language.

== Frequently Asked Questions ==

= Does this plugin translate WooCommerce products? =
The Free version of the plugin focuses on standard WordPress pages, posts, categories, and tags. To translate WooCommerce products, attributes, cart parameters, and checkout pages while preserving stock/pricing states, check out the Pro upgrade on our website.

= Where are my translations stored? =
Translations are stored in a custom local database table (`wp_teknotok_translations`). This means they are served instantly from your own database on page loads without any external API latency.

= What languages are supported? =
We support 10 of the most common global languages: English, Spanish, Turkish, Chinese, Hindi, Arabic, Portuguese, Bengali, Russian, Japanese, and French.

= Will this slow down my website? =
No. All translation jobs are sent to a background worker queue, meaning page editing and visitor browsing are never blocked. The front-end switcher is styled with vanilla CSS and is optimized for performance.

== Screenshots ==

1. The Setup Wizard screen showing target language selection.
2. The main Settings Dashboard with language switcher settings.
3. The Floating Language Switcher rendered on the frontend.
4. The Diagnostics and System Status page.
