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

Remove hard-coded messages and add language variables for extension
exception messages.

- [ ]  Depends on #2309

[PHPBB3-11467](https://tracker.phpbb.com/browse/PHPBB3-11467)