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

Skip to content

Use a placeholder in tracking code sentence in shipment email#11609

Merged
lchrusciel merged 2 commits into
Sylius:masterfrom
jacquesbh:better-way-to-translate
Jul 14, 2020
Merged

Use a placeholder in tracking code sentence in shipment email#11609
lchrusciel merged 2 commits into
Sylius:masterfrom
jacquesbh:better-way-to-translate

Conversation

@jacquesbh
Copy link
Copy Markdown
Contributor

Q A
Branch? 1.7
Bug fix? yes (translation issue in French language…)
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

See this discussion on Crowdin: https://crowdin.com/translate/sylius/981/en-fr#34209.

The way the sentence was handled gives a bad translation in French since we need to
change the order of the 3 elements previously involved.

Using a placeholder %tracking_code% here will allow to have a correct translation
in all languages.

@jacquesbh jacquesbh requested a review from a team as a code owner June 28, 2020 18:05
@probot-autolabeler probot-autolabeler Bot added the Admin AdminBundle related issues and PRs. label Jun 28, 2020
@jacquesbh jacquesbh force-pushed the better-way-to-translate branch from 10601ef to 4118154 Compare June 28, 2020 18:05
@jacquesbh jacquesbh marked this pull request as draft June 29, 2020 07:53
@jacquesbh jacquesbh changed the base branch from master to 1.7 June 29, 2020 07:57
@jacquesbh jacquesbh force-pushed the better-way-to-translate branch from 4118154 to 6fd3abc Compare June 29, 2020 08:55
@jacquesbh jacquesbh marked this pull request as ready for review June 29, 2020 13:05
Copy link
Copy Markdown
Contributor

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

Hey Jacques,
Thanks for your contribution. This change absolutely makes sense.
However, I'm not sure if it should be part of 1.7. At the end, it would be released as a patch (which gives us a high level of confidence, that some people will upgrade their apps to this version and it will change the translation of their email. Therefore, maybe we should add it to the UPGRADE.md file? Also, I would say we should keep old translation in place.

@jacquesbh jacquesbh force-pushed the better-way-to-translate branch from 6fd3abc to 1f8264d Compare June 30, 2020 11:37
@probot-autolabeler probot-autolabeler Bot added the Maintenance CI configurations, READMEs, releases, etc. label Jun 30, 2020
@jacquesbh jacquesbh changed the base branch from 1.7 to master June 30, 2020 11:50
@jacquesbh jacquesbh marked this pull request as draft July 6, 2020 11:29
@jacquesbh jacquesbh force-pushed the better-way-to-translate branch from 1f8264d to 2d16805 Compare July 9, 2020 20:16
@jacquesbh jacquesbh marked this pull request as ready for review July 9, 2020 20:17
@jacquesbh jacquesbh requested a review from lchrusciel July 10, 2020 19:48
@lchrusciel lchrusciel merged commit 1e586c9 into Sylius:master Jul 14, 2020
@lchrusciel
Copy link
Copy Markdown
Contributor

Thank you, Jacques! 🎉

@jacquesbh jacquesbh deleted the better-way-to-translate branch July 14, 2020 14:02
@nikkuexe
Copy link
Copy Markdown

Thank you. This change is needed for Japanese localization as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin AdminBundle related issues and PRs. Maintenance CI configurations, READMEs, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants