added translateArray to globalize, so that a whole array can be translated at once