Add trans dialog's function