Translations:Manual:Hooks/27/en

For extensions, the syntax is similar in the file $file (corresponding to the first and second case above):