-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Enable 'debug:translation' command to inspect directories #13340
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
Conversation
It adds a new flag, so this is definitely a new feature and it will be merged in 2.7 instead. |
@@ -45,6 +45,7 @@ protected function configure() | |||
new InputOption('domain', null, InputOption::VALUE_OPTIONAL, 'The messages domain'), | |||
new InputOption('only-missing', null, InputOption::VALUE_NONE, 'Displays only missing messages'), | |||
new InputOption('only-unused', null, InputOption::VALUE_NONE, 'Displays only unused messages'), | |||
new InputOption('path', 'p', InputOption::VALUE_NONE, 'Treats bundle name as path'), |
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.
Do we really need a new option? What about looking for a path if the bundle does not exist instead?
This enables not only to inspect Bundles, but also directories, like the app/ directory for instance.
f2c82e5
to
37d53ff
Compare
Thanks for the feedback @fabpot. I changed it according to your suggestion. |
Looks good to me now 👍 |
|
Nice hint @stof. I had a look at the |
@xelaris Opening a new one for 2.7 and make both commands behave the same looks like the way to go. I would not create an abstract class though. Thanks. |
closed in favor of #13443 |
…tion debugging in directories (xelaris) This PR was merged into the 2.7 branch. Discussion ---------- [Translation][Command][FrameworkBundle] Enable translation debugging in directories | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12273 | License | MIT | Doc PR | This PR follows up #13340 and enables not only to inspect Bundles, but also directories, like the `app/` directory. Additionally it harmonizes the TranslationDebugCommand and TranslationUpdateCommand to expect an optional bundle name or a directory and fall back to kernel root dir if none of them is given. Commits ------- 2662244 [FrameworkBundle] Enable translation debugging in directories
This enables not only to inspect Bundles, but also directories, like the
app/
directory for instance.I'm not sure about the branch, strictly speaking it's a new feature, but in some way a bug fix too.