=== PairLang – English/Spanish Post Switcher ===
Contributors: md5to
Tags: bilingual, spanish, language switcher, hreflang, translation
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Run a bilingual English/Spanish site the easy way: pair posts, add a stylish switcher and correct hreflang tags.

== Description ==

Big multilingual plugins are heavy, complex and expensive. If your site is in **English and Spanish**, **PairLang** is all you need.

Write your article in English, write the Spanish version as a second post, and link them in one click. PairLang does the rest.

= Features =

* **One-click pairing** – pick the translation in the "Language & Translation" box. Both posts are linked automatically, and old links are cleaned up for you.
* **Floating language button** – a stylish pill switcher on every paired post (left or right corner).
* **Shortcode switcher** – place `[pairlang_switch]` anywhere, including menus and widgets that support shortcodes.
* **SEO done right** – adds `hreflang="en"`, `hreflang="es"` and `x-default` tags, and sets the correct `<html lang>` on Spanish pages.
* **Smart suggestion, no redirects** – visitors whose browser is in the other language see a friendly "Leer en español / Read in English" bar. No automatic redirects, so search engines index both versions.
* **Remembers the visitor's choice** for future visits.
* **Language column** in the posts list shows which posts still need a translation.
* **Works with posts, pages and public custom post types.**
* **Tiny footprint** – about 3 KB of JavaScript, loaded only on paired posts. No database tables.

= Perfect for =

* Bilingual blogs and businesses serving Hispanic audiences
* Puerto Rico, Latin America and US Spanish-speaking markets
* Sites that want hreflang without a heavy multilingual plugin

= Pro version =

Everything above is free. The optional Pro add-on adds one-click "Create Spanish/English version", a menu language switcher, bilingual categories and tags, and a translation dashboard. Learn more at https://md5to.com/plugins/pairlang/

== Installation ==

1. Upload the `pairlang` folder to `/wp-content/plugins/`, or install it from **Plugins → Add New**.
2. Activate the plugin.
3. Go to **Settings → PairLang** to choose your main language, button labels and content types.
4. Edit a post, set its language and choose its translation in the **Language & Translation** box.

== Frequently Asked Questions ==

= Does PairLang translate content automatically? =

No. You write (or paste) each version yourself, which keeps full control of quality and SEO. PairLang connects the two versions.

= Does it redirect visitors? =

Never. It only shows a suggestion bar that the visitor can close. This is the approach recommended for SEO.

= Will it slow down my site? =

No. It loads one small CSS file and a tiny script only on posts that have a translation.

= What happens to my pairs if I uninstall? =

Settings are removed. The language pairs stay with your posts unless you use the `pairlang_delete_pairs_on_uninstall` filter.

== Screenshots ==

1. Floating English/Español switcher.
2. Language suggestion for Spanish-speaking visitors.
3. Language & Translation box in the editor.
4. Language column in the posts list.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
