TranslationExtension

class TranslationExtension extends Twig_Extension Provides integration of the Translation component with Twig. Methods __construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null) getTranslator() getFilters() {@inheritdoc} array getTokenParsers() Returns the token parser instance to add to the existing list. getNodeVisitors() {@inheritdoc} getTranslationNodeVisitor() trans($message, array $arguments = array(), $do

TranslationDumperPass

class TranslationDumperPass implements CompilerPassInterface Adds tagged translation.formatter services to translation writer. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

TranslationDefaultDomainNodeVisitor

class TranslationDefaultDomainNodeVisitor extends Twig_BaseNodeVisitor TranslationDefaultDomainNodeVisitor. Methods __construct() Constructor. getPriority() {@inheritdoc} Details __construct() Constructor. getPriority() {@inheritdoc}

TranslationDebugCommand

class TranslationDebugCommand extends ContainerAwareCommand Helps finding unused or missing translation messages in a given locale and comparing them with the fallback ones. Constants MESSAGE_MISSING MESSAGE_UNUSED MESSAGE_EQUALS_FALLBACK Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command

TranslationDataCollector::lateCollect()

lateCollect() Collects data as late as possible.

TranslationDataCollector::getName()

string getName() Returns the name of the collector. Return Value string The collector name

TranslationDataCollector::getMessages()

array getMessages() Return Value array

TranslationDataCollector::getCountMissings()

int getCountMissings() Return Value int

TranslationDataCollector::getCountFallbacks()

int getCountFallbacks() Return Value int

TranslationDataCollector::getCountDefines()

int getCountDefines() Return Value int