Fixed up the if blocks in the translate template