Issue #3595596: name the vault item in the add and edit form titles
Names the vault item in the add/edit form page titles instead of the generic "Add structured data" / "Edit structured data" / "Edit file".
- Add record:
_title_callback-> "Add @kind" (e.g. "Add Civil status"), the kind being added. - Edit (a file and a structured-data record are the same
pdv_itementity, so one generic callback serves both): "Edit @label", preferring the item's custom label, falling back to the kind label, and to a generic "Edit file" only for an uncategorized file with no label. - The custom label is encrypted, so the callback decrypts it and falls back to the clear-text kind label when the vault is locked (try/catch).
- Bundled French translations added (
Ajouter @label/Modifier @label).
phpcs (Drupal, DrupalPractice) and phpstan clean locally; verified on the dev sites.