Repetition and translation shifts