simplify the gen-*-projectfile scripts

and have one central location for the locales