Update translate.php - new spelling code

Translated some more code and done some corrections on code typo.