-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Translation] Fix TranslationNodeVisitor
with constant domain
#53357
[Translation] Fix TranslationNodeVisitor
with constant domain
#53357
Conversation
3625739
to
9861bc4
Compare
Not sure if I should fix the fail check for code I didn't touch ? |
TranslationNodeVisitor
with constant domain
@@ -158,6 +158,19 @@ private function getReadDomainFromNode(Node $node): ?string | |||
return $node->getAttribute('value'); | |||
} | |||
|
|||
if ( | |||
$node instanceof FunctionExpression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the updated fixture I would have expected a FilterExpression
here. But that makes me think that we probably need to provide the fix for the trans
tag, t()
function as well as the trans
filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added test and they are now supported 52b111a
@xabbuh Should I fix the CI ? The error (even from fabbot.io) seems unrelated to my changes, and I'm affraid about conflict during futur merge if I start fixing them... |
@VincentLanglet You can safely ignore things suggested by fabbot that haven't been touched by your changes. |
Thanks ; I think it's ready then :) |
b53a9be
to
d14795d
Compare
Thank you @VincentLanglet. |
…actor (VincentLanglet) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Translation] Fix constant domain resolution in PhpAstExtractor | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #53356 | License | MIT Similar to #53357 Closes #53356 Commits ------- c43f6c0 [Translation] Fix constant domain resolution in PhpAstExtractor
Related to #53356 but fixing only the twig part.