removed old references to 'locale' and sticking with 'language' for the translation function