Manual:$wgExtensionMessagesFiles

Details
Associative array mapping extension name to the filename where messages can be found. The file must create a variable called $messages. When the messages are needed, the extension should call wfLoadExtensionMessages.

Example: