=== FreedomTranslate WP ===
Contributors: thefreedom
Tags: translate, multilingual, libretranslate, localization, language
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.4.5
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Translate your WordPress site on-the-fly using LibreTranslate (local or remote) with caching, language detection, and admin options.

== Description ==

FreedomTranslate WP is a lightweight plugin that translates your frontend WordPress content in real-time using a self-hosted instance of LibreTranslate or similar engine with remote URL and with API.

**Features include:**
* Real-time translation of posts, pages, titles, and other frontend content
* Caching system to reduce API requests
* Exclude posts or pages from translation via checkbox
* Admin settings for selecting available languages, managing cache, and excluded words
* Language selector via shortcode `[freedomtranslate_selector]`
* HTML-aware translation
* Works entirely offline with your own LibreTranslate instance or with a remote URL

No need for external APIs or translation keys — 100% self-hosted.

== Installation ==

1. Download and extract the plugin zip
2. Upload the folder to `wp-content/plugins/freedomtranslate-wp`
3. Activate the plugin from the Plugins admin page
4. Make sure LibreTranslate is running (default: http://localhost:5000)
5. Optional: go to **Settings > Freedom Translate** to configure

== Usage ==

* Use `[freedomtranslate_selector]` shortcode to show the language switcher
* Set words to exclude from translation via settings page
* Exclude specific posts/pages by checking the box in the editor sidebar
* Cache can be cleared from settings

== Frequently Asked Questions ==

= Can I use a remote LibreTranslate server? =  
Yes! You can change the API URL and port in the plugin settings.

= What happens if LibreTranslate is not reachable? =  
The original untranslated text will be shown.

== Screenshots ==

1. Admin panel to select languages and excluded words
2. Frontend content automatically translated
3. Language dropdown from shortcode `[freedomtranslate_selector]`

== Changelog ==
= 1.4.4 =
* Update to version 1.4.4 - Multiple translation services and improvements

= 1.4.3 =
* Addedd uninstall procedures (cache and options deleted on uninstall)

= 1.4.2 =
* Improved placeholder for pre-processing words to not translate

= 1.4.1 =
* Edit name

= 1.4.0 =
* Improved casing and excluded word handling
* Added admin option to change API URL
* Updated language list

= 1.3.0 =
* Added language selector shortcode
* Added option to exclude pages/posts
* Improved admin UI

= 1.2.0 =
* Switched to HTML-aware translation
* Improved translation accuracy

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.4.0 =
Recommended update for better performance and casing preservation.

== License ==

GPLv3 or later. See LICENSE.txt for full license.

== Disclaimer ==

This plugin is not affiliated with or endorsed by LibreTranslate or its developers.
"LibreTranslate" is a collaborative open source project. The name is used solely to describe the API that this plugin interacts with.

== Development ==

Contribute or report issues on GitHub:  
https://github.com/OskarCosimo/FreedomTranslate-WP