Manual:$wgExtensionMessagesFiles

Details
Associative array mapping extension name to the filename where messages can be found. The file must create a variable called $messages.

Example: