[ticket/11467] Add language variables for extension exception messages

Remove the hardcoded messages and add language variables for extension
exception messages.

PHPBB3-11467