Trying to get logic for calling translate() to work