TranslationsCacheWarmer::warmUp()

warmUp(string $cacheDir) Warms up the cache. Parameters string $cacheDir The cache directory

TranslationNodeVisitor::getMessages()

getMessages()

TranslationNodeVisitor::enable()

enable()

TranslationNodeVisitor

class TranslationNodeVisitor extends Twig_BaseNodeVisitor TranslationNodeVisitor extracts translation messages. Constants UNDEFINED_DOMAIN Methods enable() disable() getMessages() getPriority() {@inheritdoc} Details enable() disable() getMessages() getPriority() {@inheritdoc}

TranslationNodeVisitor::getPriority()

getPriority() {@inheritdoc}

TranslationsCacheWarmer

class TranslationsCacheWarmer implements CacheWarmerInterface Generates the catalogues for translations. Methods __construct(TranslatorInterface $translator) warmUp(string $cacheDir) Warms up the cache. bool isOptional() Checks whether this warmer is optional or not. Details __construct(TranslatorInterface $translator) Parameters TranslatorInterface $translator warmUp(string $cacheDir) War

TranslationNodeVisitor::disable()

disable()

TranslationFormListener::preSetData()

preSetData(FormEvent $event) Parameters FormEvent $event

TranslationFormListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

TranslationLoader

class TranslationLoader TranslationLoader loads translation messages from translation files. Methods addLoader(string $format, LoaderInterface $loader) Adds a loader to the translation extractor. loadMessages(string $directory, MessageCatalogue $catalogue) Loads translation messages from a directory to the catalogue. Details addLoader(string $format, LoaderInterface $loader) Adds a loader to the translation extractor. Parameters string