Make use of a common setTranslate function