Problem/Motivation

From Github #63
**As a** content designer using the LGD Date and LGD Date of birth elements in Drupal forms
**I need** to be able to set the wording for validation messages
**So that** the messages are clear, accessible and match the rest of the style pattern

The custom validation text options for LGD date and LGD date of birth fields do not alter the displayed message. This often results in duplicated words and, for some reason, it italicises the field name, which does not happen anywhere else.

See examples:

Only local images are allowed.

Comments

andybroomfield created an issue. See original summary.

sgroi’s picture

The italics issue is caused by the %field placeholder in t(), which wraps the value in <em> tags. Switching to @field fixes this, it escapes the string as plain text without any HTML formatting.