Protein translocation into and across the bacterial plasma membrane and the plant thylakoid membrane.