Correction of the translate function

Update of the goog_trans function so that the translate plugin would work again.