Translations:Manual:Messages API/21/en

Instead, you should use an instance of the $1 class and call the $2 method, e.g. $3 which has the added advantage of using Language's localization caches.