Updated translation function