Skip to content

[Translator] Fix select & plural message format #14883

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
merged 1 commit into from
Jan 26, 2021
Merged

[Translator] Fix select & plural message format #14883

merged 1 commit into from
Jan 26, 2021

Conversation

mabar
Copy link
Contributor

@mabar mabar commented Jan 25, 2021

Current version produces spaces around message with both ext-int and symfony version of message formatter. This PR fixes it.

e.g. for parameters ['gender_of_host' => 'male', 'num_guests' => 2, 'host' => 'John', 'guest' => 'Mr. Bean'] output changes from: (select text to see spaces)

        John invites Mr. Bean and one other person to his party.
    

To:

John invites Mr. Bean and one other person to his party.

@carsonbot carsonbot added this to the 4.4 milestone Jan 25, 2021
@carsonbot carsonbot changed the title Fix select & plural message format [Translator] Fix select & plural message format Jan 26, 2021
@javiereguiluz
Copy link
Member

Marek, thanks for this nice improvement ... and congrats on your first Symfony Docs contribution 🎉

@javiereguiluz javiereguiluz merged commit ce20942 into symfony:4.4 Jan 26, 2021
@mabar mabar deleted the patch-2 branch January 26, 2021 18:25
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