Manual:Hooks/MessagesPreLoad

Details

 * $title: title of the message (string)
 * $message: value (string), change it to the message you want to define
 * $code: language code being requested (string)

This hook is sometimes used to programatically provide the text of a message. Note though that that will not work when the message's  flag has been disabled.