Global function in file auto_prepend.php:

/**
 * Change language
 * @param $language New language to set
 */
function T_set_language($language)
{
    it_text::init();
    return $GLOBALS['it_text']->set_language($language);
}