Updated translation function.