Add functionality to the Symfony2 translator