Global function in file auto_prepend.php:

/****************** functions for class it_text **********************/

/**
 * Return a text in the selected language
 * Replaces variables of the form {var} with quoted values from argument $values
 * @param $label Label of text to return
 * @param $language Optional value array (will be sent through Q()) or language string
 * @param $values Optional value array (will be sent through Q()) or language string
 * @return Localized text string
 */
function T($label, $language = null, $values = null)
{
    it_text::init();

    if (is_array($language))        # Need to swap params?
        list($language, $values) = array($values, $language);

    return $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), (array)$values), $language, false);
}