[ticket/11569] Add type parameter and fix language variable

PHPBB3-11569