A process in which a protein is transported to, or maintained in, the T-tubule. The T-tubule is an invagination of the plasma membrane of a muscle cell that extends inward from the cell surface around each myofibril.