modified to only need language lookup (listedlanguages was generated by a very old script - for some reason we just kept using it) the keys of languagelookup are the same as the entire listlanguages file anyway