Duolith docs

Errors E0500 to E0599

E0531 Text that cannot be a message

Message The text for "key" is not a valid message: problem

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

duolith locales extract writes every text it finds as an ICU message, doubling an apostrophe and quoting a brace as '{', so any text becomes a valid message. A key a page passes to t() that no catalogue has starts with its last part as its text. When even that is not a valid message, the key is refused before anything is written, since the build would refuse the catalogue (E0282).

How to fix it

Give the key a message by hand in the default locale's catalogue, then run duolith locales extract again.

In a terminal

duolith explain E0531

Mentioned in