We didn't have names for most scripts and languages, and no translations at all. Copy the necessary code from gtk here.