tweaking function to get the alternate language ids