Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Improve documentation about translation:extract --sort option #49189

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

Merged

Conversation

marien-probesys
Copy link
Contributor

Q A
Branch? 6.3
Bug fix? no
New feature? no
Deprecations? no
Tickets Contribute to #37918
License MIT
Doc PR N/A

The --sort option only works with --dump-messages (i.e. not with --force). It took me some time to realize that, and the documentation didn't help me since it was showing an example that didn't work.

It would have been better to also apply the --sort option to --force as requested in #37918, but I don't have that much time to understand how to do it. At least it could save some time to people ;)

It's my first PR for Symfony, so let me know if I forget something or did something wrong!

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

…ort option

The `--sort` option only works with `--dump-messages` (i.e. not with
`--force`). It took me some time to realize that, and the documentation
didn't help me since it was showing an example that didn't work.

Contribute to symfony#37918
@fabpot fabpot changed the base branch from 6.3 to 5.4 March 25, 2023 09:34
@fabpot fabpot force-pushed the imp/translation-extract-sort-documentation branch from 5300f16 to 1dbf13e Compare March 25, 2023 09:34
@fabpot
Copy link
Member

fabpot commented Mar 25, 2023

Thank you @marien-probesys.

@fabpot fabpot merged commit 618f920 into symfony:5.4 Mar 25, 2023
@marien-probesys marien-probesys deleted the imp/translation-extract-sort-documentation branch March 27, 2023 07:12
This was referenced Mar 31, 2023
marien-probesys added a commit to marien-probesys/symfony that referenced this pull request Dec 18, 2023
This commit reverts the change made in PR symfony#49189 as the command accepts
the argument `--sort` with `--force`.

Reference: symfony#49189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants