I noticed that "http" is hard-coded in localizer_block_switch_language_links() -- this won't work for https sites.