The Tugboat preview ships the demo UI in English only, so a reviewer cannot easily check how the pdv interface reads in French. This adds French as a second, switchable language to the demo seed.

What it does

  • Installs the language and locale modules and adds French. English stays the site default, so the demo is unchanged for English reviewers.
  • Imports the French translations bundled in each enabled pdv module's translations/ dir, so the pdv vault dashboard, consent ceremony, owner passphrase, operator surfaces, and Webform vault elements render in French.
  • Adds a language switcher block (Olivero secondary menu) so a reviewer can flip the interface to French on demand, then back to English.

Why the .po files are imported directly

pdv has no localize.drupal.org translation server, and the import core would otherwise run on module install is a batch. That batch does not execute under drush php:script (the context the seed runs in), so the bundled .po files are imported directly with Gettext::fileToDatabase, the same core importer the batch would call.

Verification

Ran the full seed against a standard install: English remains the default, French is available, the pdv strings resolve in French (for example "Your vault is locked." becomes "Votre coffre-fort est verrouille."), and the switcher block renders working English and French links.

Issue fork pdv-3595227

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

  • mably committed d47089e2 on 1.x
    task: #3595227 Tugboat demo: add French as a switchable language to...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • mably committed b43e2761 on 1.x
    task: #3595227 Full-UI French via Gettext (drush locale:update broken on...

  • mably committed c856d632 on 1.x
    task: #3595227 French demo polish -- landing-page translation + language...

  • mably committed 1cf4379e on 1.x
    task: #3595227 scope the demo language-switcher CSS so it stops forcing...