Modify translation generation