extractor
extractor copied to clipboard
Extracts translation strings from source code
Hi, I think that the FormTypePlaceholder visitor should be able to: - Extract from an array which is allowed (ex.: when using a DateTimeType) as you can see in the...
Hello, In an existing project running on Symfony 2.8, I have all my translations done in YAML files (as the Symfony documentation recommend it). The YAML files are in the...
In a choicetype form element, Im using a Enumtype for choices ``` $builder->add('gender', ChoiceType::class, [ 'label' => 'Gender', 'choices' => GenderEnumType::getChoices(), 'required' => $options['fullprofile'], 'validation_groups' => $validationGroups, ]); ``` The...
The extractor you wrote misses lots of features of the Symfony Twig bridge: - it does not support the ``trans_choice`` tag - it does not support the ``trans_default_domain`` tag Symfony...
Hi! I have discovered an error in the following class: ```bash /var/www/vhosts/abc/vendor/php-translation/extractor/src/Visitor/Php/Symfony/ValidationAnnotation.php:112 Warning: Undefined array key "message" #0 /var/www/vhosts/abc/vendor/php-translation/extractor/src/Visitor/Php/Symfony/ValidationAnnotation.php(91): Translation\Extractor\Visitor\Php\Symfony\ValidationAnnotation->extractFromConstraints() ``` while using constructor promoted properties instead a class var...
This commit is code-cleanup after the Symfony7 bump. I took another look into the code because I wanted to figure out where the Exception was thrown regarding the unknown Attributes....
### Description When running the translation extractor (`php bin/console translation:extract`), I encounter the following errors: - Form choice is not an array - Choice label is not a scalar string...
Package doctrine/annotations is abandoned, you should avoid using it. No replacement was suggested.
Package `php-translation/extractor` requires an obsolete package ` doctrine/annotations`. Should be great to upgrade it to observe the mantainer comments: https://packagist.org/packages/doctrine/annotations
# composer.json allows nikic/php-parser ^4.0 but Extractor requires ^5.0 (uses createForVersion) ## Problem description In **Extractor**, we are using the method `PhpParser\ParserFactory::createForVersion`. You can see the usage here: [PHPFileExtractor.php#L36](https://github.com/php-translation/extractor/blob/4975dfa64bd69a48ccfce81ab53f28e533abd4e4/src/FileExtractor/PHPFileExtractor.php#L36C42-L36C58) This...