updated so translation of strings and single words occurs in the same class