=== Lingo.dev ===
Contributors: lingodev
Tags: translation, localization, multilingual, polylang, wpml
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Keep your posts and pages translated with Lingo.dev, through Polylang, WPML or TranslatePress.

== Description ==

Lingo.dev translates your WordPress content and keeps the translations current as you edit. It works with the multilingual plugin you already use: Polylang, WPML or TranslatePress keeps serving each language, and Lingo.dev writes the translations into it.

This plugin requires a Lingo.dev Enterprise account.

* Translates the title, content and excerpt of posts, pages and custom post types.
* Updates a translation when its source post changes.
* Never overwrites a translation someone edited after Lingo.dev last read it.
* Writes translations as drafts or publishes them, as you choose. A translation is published only if its source post is published when Lingo.dev writes it; unpublishing a source post leaves its translations as they are.

Which post types and languages are translated, and with which engine, you choose in your Lingo.dev dashboard.

== Installation ==

1. Make sure you have a Lingo.dev Enterprise account.
2. Install Polylang, WPML or TranslatePress, and set up your languages.
3. Install and activate this plugin.
4. In Lingo.dev, open Integrations → WordPress, enter your site address and click Continue to WordPress.
5. Sign in to WordPress if asked, and click Connect.
6. Choose the post types and languages to translate.

== Frequently Asked Questions ==

= Do I need a Lingo.dev account? =

Yes. The plugin requires a Lingo.dev Enterprise account: Lingo.dev does the translating, and its WordPress integration comes with the Enterprise plan. See https://lingo.dev/pricing.

= Do I need Polylang, WPML or TranslatePress? =

Yes. WordPress has no languages of its own, so Lingo.dev writes each translation into the multilingual plugin your site runs: as a post linked to its source post in Polylang or WPML, or as TranslatePress translations of the post's text.

= What stays untranslated with TranslatePress? =

TranslatePress's free version keeps the post's address, the page title, the meta description and image alt text in the source language. TranslatePress has no drafts, so a translation is live as soon as Lingo.dev writes it. Translations you already made in TranslatePress are kept.

= Who can connect the site? =

Only a WordPress administrator. Lingo.dev sends you to Settings → Lingo.dev on your site, where you approve the connection.

= What can Lingo.dev change on my site? =

Only translations of the posts you choose to translate: their title, content and excerpt, and whether they are published. It cannot change settings, users, plugins or themes. It writes as no WordPress user, so with Polylang or WPML a translation it saves keeps only the HTML WordPress accepts from an Author: scripts, iframes and similar markup are removed, including any added to the translation by hand.

= What if Lingo.dev loses access to the site? =

This happens after the plugin is deleted and installed again. Lingo.dev marks the connection as needing attention; select Reconnect on it in Lingo.dev and approve the connection in WordPress again.

== External services ==

This plugin connects your site to Lingo.dev (https://lingo.dev), a service that translates your content. Using it requires a Lingo.dev Enterprise account. Nothing is sent before you connect the site in Lingo.dev, and the plugin stops sending when you disconnect it there.

What the plugin sends, and where:

* When you approve the connection under Settings → Lingo.dev, your browser returns to https://lingo.dev/integrations/oauth/callback with a one-time code, which Lingo.dev exchanges with your site for a key.
* Whenever a post of a translated post type is saved or deleted, the plugin sends its ID, post type, language and status to https://api.lingo.dev. It sends no content.

What Lingo.dev reads and writes through this plugin's REST API, authenticated with that key:

* Your site's name and address, its WordPress and plugin versions, its languages, and the post types it can translate.
* The ID, title, status, language and modification time of the posts of the post types you choose to translate, including scheduled, draft, pending and private posts.
* The title, content and excerpt of those posts and of their translations.
* The translations it writes back into Polylang, WPML or TranslatePress.

Lingo.dev's terms of service: https://lingo.dev/legal/terms
Lingo.dev's privacy policy: https://lingo.dev/legal/privacy

== Changelog ==

= 0.2.0 =
* Connect the site from Lingo.dev by approving it in WordPress. Keys are no longer generated or pasted by hand.
* Works with TranslatePress.

= 0.1.0 =
* First release.
