As found out in #1760270: Comment translation broken?, there's a notice for form elements with a #type, which is a perfectly valid thing to do.

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new753 bytes
new756 bytes

And here's the patch.

Not sure if #access should be set in that case or not, here's a patch for both approaches.

plach’s picture

Status: Needs review » Needs work

I'm afraid we need to recurse into typeless elements.

plach’s picture

plach’s picture

Status: Needs work » Closed (duplicate)