Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Translation] Add --prefix and --no-fill to translation page#20352

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:7.2fromjawira:no-fill
Oct 28, 2024

Conversation

@jawira
Copy link
Contributor

I added documentation for--no-fill option and--prefix option in Translations page.

--no-fill option is a new feature in Symfony 7.2.

Closes#20343

@carsonbotcarsonbot added this to the7.2 milestoneOct 27, 2024

..code-block::terminal
# change default prefix for new translations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
#change default prefix for new translations
#changes default prefix for new translations

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done, I also shorten the comment to "changes default prefix"

# change default prefix for new translations
$ php bin/console translation:extract --force --prefix="NEW_" fr
# leave new translation empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
#leave newtranslation empty
#leaves newtranslations empty

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.

text as the message, prefixed by ``__``. You can customize this prefix using
the ``--prefix`` option.

If you want to leave new translations empty, use the ``--no-fill`` option.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Could you please add aversionadded directive for this new option ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done. I put directive after example.

@carsonbotcarsonbot changed the titleAdd --prefix and --no-fill to translation page[Translation] Add --prefix and --no-fill to translation pageOct 28, 2024
@javiereguiluzjaviereguiluz merged commit4e83e9a intosymfony:7.2Oct 28, 2024
3 checks passed
@javiereguiluz
Copy link
Member

Thanks@jawira and congrats on your first Symfony Docs contribution 🎉

jawira reacted with hooray emoji

@jawirajawira deleted the no-fill branchOctober 28, 2024 20:51
javiereguiluz added a commit that referenced this pull requestOct 30, 2024
… --prefix option (xabbuh)This PR was merged into the 5.4 branch.Discussion----------[Translation] document the translation:extract command's --prefix optionbackport from#20352Commits-------942396b document the translation:extract command's --prefix option
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@MrYamousMrYamousMrYamous left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

7.2

Development

Successfully merging this pull request may close these issues.

4 participants

@jawira@javiereguiluz@MrYamous@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp