"T4" stands for "Text Template Transformation Toolkit", a code generation facility built into Visual Studio 2010. A T4 text template is a mixture of text blocks and control logic that can generate a text file.
Learn more about it on the web, starting with Microsoft's own documentation.
The webcast “T4 Templates in Visual Studio Code Generation” is also helpful.