Translations:Manual:Developing extensions/253/en

In classes that implement $IContextSource (as well as some others such as subclasses of SpecialPage), you can use $msg instead.