[ticket/12254] Better language switching on registration page

PHPBB3-12254