The PDV: vault event token [event:deadline_formatted] (pdv_eca) formats the dormancy deadline with the medium date format but passes no langcode to the date formatter, so it renders in the current (request or site) language. At dispatch time - cron, or a request in the site default language - that is typically not the owner's language, so an owner-facing notification shows an English date inside an otherwise French (or other) message: "supprimé le Sat, 13 Jun 2026" instead of "le sam, 13 juin 2026".

A Set language action in the ECA model does not help, because the token value is already formatted when the event data is built.

Fix: format the deadline in the owner's preferred language - as pdv_mail and pdv_message already do for their @deadline placeholder - so [event:deadline_formatted] is correct regardless of the current language.

A merge request with a kernel-test regression guard (a French owner with a distinct fr date pattern; the token must follow it) is attached.

Issue fork pdv-3594034

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 committed 8054aaff on 1.x
    fix: #3594034 pdv_eca: [event:deadline_formatted] uses the current...
mably’s picture

Status: Active » 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.