Multiple populations in globular clusters and their parent galaxies