Added a translation function