Replaced calls to gettext() and ngettext() with calls to the phrase() or nphrase() functions:

lib/Twig/Extensions/Node/Trans.php:
	Replace:
        return $plural ? 'ngettext' : 'gettext';
    With:
        return $plural ? 'zenario_nphrase' : 'zenario_phrase';



	Replace:
                ->write('echo strtr('.$function.'(')
    With:
                ->write('echo '.$function.'(')
	
	Replace:
            $compiler->raw('), array(');
    With:
            $compiler->raw(', array(');

	Replace:
                        ->string('%count%')
    With:
                        ->string('count')

	Replace:
                        ->string('%'.$var->getAttribute('name').'%')
    With:
                        ->string($var->getAttribute('name'))

	Replace:
                    $msg .= sprintf('%%%s%%', $n->getAttribute('name'));
    With:
                    $msg .= '{{'. $n->getAttribute('name'). '}}';



lib/Twig/Extensions/Extension/I18n.php
	Replace:
            new Twig_SimpleFilter('trans', 'gettext'),
    With:
            new Twig_SimpleFilter('trans', 'zenario_phrase')


Manually went through the code looking for all of the references to deprecated Twig classes,
and replaced them with their new composer formats.