Fixed some connections for the localization buttons; I think this fixes #1421.