[feature/avatars] Add missing docblocks to avatar manager

PHPBB3-10018
[feature/avatars] Add function for localizing errors

PHPBB3-10018