Translations:Manual:Developing extensions/351/en

Another option is using ExtensionRegistry (available since MW 1.25):