The not-defined and function-declaration errors name the identifier with an {ident} placeholder, whose value is never translated, so a script name that matches another message (such as damaged) is shown unchanged.