Switching languages sets g.locale to specified language