is a global variable that, if set, is applied to the symbol name and tag of messages that are requested but have not yet been defined.
- $NewMessage is applied to the symbol name, tag, and language of a message if an explicit language is specified.
- The Wolfram Language looks for the value of name::tag or name::tag::lang after $NewMessage has been applied.
- You can set up $NewMessage to read the text of messages from files when they are first needed.
- A typical value for $NewMessage might be Function[ToExpression[FindList[files,ToString[MessageName[#1,#2]]]]].
Basic Examples (1)
A typical value for $NewMessage is a function that searches for messages in file. Note that this value for $NewMessage will also be applied to internal requests for messages and so may result in additional output:
If a message has not previously been generated, the value of $NewMessage is applied and evaluated:
Restore the default value of $NewMessage: