Refs #4478 - API doc strings marked for translation

@domcleal , the formatting of the message changed. The `e.message` is now parameter of the message and not its part. Error codes are computed from the message without parameters so the code for this message is different. I fixed it in the tests. However I'm not sure if this is proper fix or if it violates some error codes rules somehow.