Duolangue — Bilingual French & English Sites

Aprašymas

Most sites are not translated into ten languages — they are translated into two. Duolangue is built for that exact case: one site, two languages, no bloat. No custom database tables, no settings maze, no machine-translation upsell baked into checkout.

Made in Québec, where French/English sites are the norm, Duolangue works with any pair of languages: French–English, English–Spanish, Spanish–German, you name it. Running a business in Québec? Duolangue makes it easy to offer your full site in French alongside English.

Duolangue gives you a fully working bilingual site for pages, posts and custom post types:

  • Directory-based routing — your default language at the root, the second language under its own directory (e.g. /fr/). A ?lang= parameter mode is available as a fallback.
  • Translated URL bases — translate the URL base of posts and custom post types (e.g. /projects/ /fr/projets/).
  • Manual translation linking — link any page, post or custom post type entry to its translation from the editor (the „Duolangue — Language” panel in Gutenberg, or a metabox in the classic editor), or unlink at any time. Nothing is ever deleted.
  • Language switcher — a [duolangue_switcher] shortcode plus duolangue_language_switcher() / duolangue_other_lang_url() template functions for themes, page builders and code blocks.
  • Automatic hreflang — correct alternate + x-default tags on every page, out of the box.
  • Menus follow the visitor’s language — menu items pointing at a linked page or post are swapped to its translation automatically, and a language link can be appended to the menus you choose.
  • ACF-aware — Post Object, Page Link and Relationship pickers only list content in the language being edited.
  • Native admin integration — a Language column, per-language tabs and bulk „assign language” actions on every list screen.
  • Admin language toggle — switch the admin between your two site languages (global setting plus an optional per-user toggle). The plugin’s own strings are translated through translate.wordpress.org.
  • Page-builder friendly — tested with Oxygen Builder. Builder template post types (Oxygen, Bricks, Breakdance, Elementor, Divi, Beaver Builder) are left untouched.

Every switcher link points to the linked translation of the current page when it exists and is published; otherwise it falls back to the home page of the target language.

What Duolangue deliberately does NOT do

  • No third language: Duolangue is designed around a language pair, where every page has exactly one counterpart in the other language (the same in Duolangue Pro).
  • No custom SQL tables — everything lives in post meta and a single option.
  • No automatic / machine translation — you (or your translator) write the words.
  • No subdomain or multisite-based language setup.

Duolangue Pro

A separate commercial edition, Duolangue Pro, adds one-click duplication into the other language, taxonomy term translation and whole-menu translation. Everything described above is in this free plugin, with no limits. Learn more at duolangue.com.

External services

This plugin includes the Freemius SDK, which on activation shows an optional opt-in screen.

  • What is sent, and when: only if you click „Allow & Continue” on that screen, Freemius receives your site URL, WordPress, PHP and plugin versions, the site language, your admin name and email address, and later plugin activation/deactivation/uninstall events. If you skip the opt-in, nothing is sent.
  • Why: to understand usage, send optional product updates by email and, if you ever purchase a Pro license, manage that account.
  • Declining the opt-in does not limit any feature of this plugin.
  • Freemius Terms of Service and Privacy Policy.

Ekrano nuotraukos

Diegimas

  1. Upload the duolangue folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate the plugin.
  3. Go to Duolangue -> Settings, pick your two languages and their WordPress locales, choose the URL structure, then save.
  4. (Optional) Go to Duolangue -> Slugs & URLs to translate your URL bases (this flushes permalinks on save).
  5. Open any page, post or custom post type entry: the „Duolangue — Language” panel in the editor sidebar lets you set its language and link its translation.

DUK

Does Duolangue support more than two languages?

No. Duolangue is a bilingual plugin: its data model links each page to a single counterpart in the other language, and its URLs, menus and switcher are built on that pair. This is the same in every edition — Duolangue Pro does not add languages. For three or more languages, a multilingual plugin is the right tool.

Does it work with any pair of languages?

Yes. English–French, Spanish–German, any pair. Language codes, names and WordPress locales are fully configurable.

Is it a good fit for a French/English site in Québec?

That is exactly what it was built for. Set French and English (e.g. fr_CA and en_CA), choose which one lives at the root, and link each page to its translation. Duolangue handles the URLs, the switcher, the menus and the hreflang tags; you stay in control of the wording.

Does it work with Oxygen Builder?

Yes. Duolangue was developed and tested on Oxygen sites. Oxygen templates are left untouched, the switcher is available as a shortcode or PHP function for code blocks, and the menu language link also works when Oxygen renders a menu by its ID.

Where is my data stored? What happens if I uninstall?

Everything lives in standard WordPress post meta and one option — no custom SQL tables. Deactivating or uninstalling preserves your language assignments and translation links by default, so reinstalling restores everything. A DUOLANGUE_REMOVE_ALL_DATA constant is available if you want a full wipe on uninstall.

Which content types are translatable?

Pages, posts and every public custom post type. Page-builder template types are excluded on purpose; developers can adjust the list with the duolangue_post_types and duolangue_excluded_post_types filters.

Are there limits?

No. There is no cap on the number of items you translate, no time limit and no license key.

Atsiliepimai

Įskiepis neturi atsiliepimų.

Programuotojai ir komandos nariai

“Duolangue — Bilingual French & English Sites” yra atviro kodo programa. Prie jos sukūrimo prisidėję žmonės surašyti toliau.

Autoriai

Įskiepis “Duolangue — Bilingual French & English Sites” išverstas į 1 kalbą. Dėkojame vertėjams už jų darbą.

Išverskite “Duolangue — Bilingual French & English Sites” į savo kalbą.

Domina programavimas?

Peržiūrėkite kodą, naršykite SVN repozitorijoje, arba užsiprenumeruokite kodo pakeitimų žurnalą per RSS.

Pakeitimų istorija

1.0.5

  • Updated plugin name, description and FAQ. No functional change.

1.0.4

  • Fixed: the language link added to chosen menu locations now also appears when a page builder (Oxygen, Bricks…) renders that menu by its ID instead of its location.

1.0.3

  • Clearer wording on the „Pages & editor” and „Slugs & URLs” screens.

1.0.2

  • Initial release.