-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Minor BC break in TranslationUpdateCommand #26007
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
Comments
@yceruto maybe something you'd like to look at? |
Will take a look soon, thanks! |
I can't reproduce the BC break. I just migrated one app from My suggestion, remove the |
Btw, there's no option to work with symfony/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php Lines 189 to 191 in b9a2e21
|
@yceruto Do you think there is something to do here or can we say that's the expected behaviour ? |
I think this can be closed, there is no bug IMO. |
Uh oh!
There was an error while loading. Please reload this page.
According to the documentation and the
translation:update
description,php bin/console translation:update --force --dump-messages en
is supposed to store translations inapp/Resources
by default.However, in #25065 the defaultTransPath constructor argument was set to
%kernel.project_dir%/translations
instead of%kernel.project_dir%/app/Resources
:symfony/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php
Line 54 in 8dadff2
symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/console.xml
Lines 86 to 94 in 8dadff2
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Line 1141 in 8dadff2
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Lines 688 to 691 in 8dadff2
The former is indeed correct for sf4 projects, but directly contradicts the description of the command (and probably some documentation) in 3.4:
php bin/console translation:update --force --dump-messages en app
does store the translations inapp/Resources/translations
.I really don't mind typing the 3 extra letters, but I thought I'd mention it either way :)
Also, not really sure if I missed anything here.
The text was updated successfully, but these errors were encountered: