These sentences occur in the Mozilla UI strings:
EN
The sentence has a grammatical or spelling error.
DE
Der Satz beinhaltet einen grammatikalischen oder Rechtschreibfehler.
The juxtaposition of the adjective grammatikalischen and the noun subcompound Rechtschreib- is a bit jarring to me, and the English arguably has the same structure.
(In German, constructions like Grammatik- oder Rechtschreibfehler are common, which along with rules about capitalization and compounding forces writers to be a bit more conscious of the parts of speech.)
Clearly this occurred organically at least in the case of the English string, so it's valid from a descriptivist viewpoint.
But are these sentences correct, according to the more prescriptivist notions of the standard languages? Or correct but not recommended by styleguides?
I'll be thankful for examples, rules and prescriptions in any language.