Important: #108013 - Translation domain labels in Extbase validator messages
See forge#108013
Description
Error messages of Extbase validators are translated only if they are label
references. Until now only messages starting with
LLL:
were treated as
such, all other strings were used as plain text. A message given in the
translation domain syntax, for example
my_, therefore appeared untranslated.
This applies to the
message
option of validators extending
Abstract and to
the messages of Symfony constraints decorated by
Constraint.
A string is now handled as a label reference if it starts with
LLL:
or
if it has the form
<domain>:<key>
and the domain resolves to an
existing label resource. Any other string, including plain messages containing
a colon, stays untouched.
A plain message that happens to look like
<domain>:<key>
of an installed
extension is translated from now on and has to be changed. If the domain
exists but the key does not, the reference itself is used as message instead of
an empty string. This also applies to unknown
LLL:
references.