extractor
extractor copied to clipboard
Extracts translation strings from source code
This replicates #76
As per https://github.com/php-translation/symfony-bundle/issues/143 : When I use a function or a static function that returns an array for a ChoiceType element, i get a "Form choice is not an array"...
Would be great to see some code-examples in the readme which shows which messages the lib is able to extract and how it identifies what a string meant for translation...
If you call a service method "create" or "add" without arguments in a form type buildForm method you get a notice "Undefined offset: 0" in FormTypeLabelImplicit.php line 37. ``` public...
string "validators" translation domain should respect the Translator translationDomain witch can be modified through configuration (validator.translation_domain: my_custom_validation_translation_domain). See in Translation\Extractor\Visitor\Php\Symfony\ValidationAnnotation ```php /** * @param array $constraints */ private function extractFromConstraints(array...
How I can extract from a string ? I have sonata page blocks - inside blocks, I have HTML with twig code with translations. How I can manualy extract translation?
Hi, the `PhpFileExtractor` is calling `init()` on every visitor: https://github.com/php-translation/extractor/blob/82fc51a07fb626c0bfb31fb3f041baa88fee6acb/src/FileExtractor/PHPFileExtractor.php#L38 although one of the allowed types is `PhpParser\NodeVisitor`, which doesn't have an `init()` method: https://github.com/nikic/PHP-Parser/blob/3f718ee2c3a22b656773476f19dd8d72a50e2413/lib/PhpParser/NodeVisitor.php
How can I dump the extracted translations to a translation file format such as Po, Mo, Xliff, etc? The documentation does not seem to cover this, and the [Symfony Translation...
Hi From what I have been able to read we were supposed to be able to define a default translation for the default language for a translator->trans call as `$translator...
VueJS does not provide any native translation tool, but the most popular plugin seems to be this one: https://github.com/kazupon/vue-i18n Does an extractor exist? Or a extractor plugin? If not, would...