Global function in file auto_prepend.php:

/**
 * Get active language
 * @return currently active language
 */
function T_lang()
{
    it_text::init();
    return $GLOBALS['it_text']->get_language();
}