Skip to content

Fix message localisation #3428

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

thomas-kl1
Copy link
Member

Description (*)

Fix the phrase to be localized. The sprintf function prevent the phrase to be translatable because the token change every time a variable is interpolated.

Questions or comments

Related work on main repo: magento/magento2#40033

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@engcom-Hotel
Copy link
Collaborator

@magento run all tests

@engcom-Hotel engcom-Hotel self-requested a review July 24, 2025 11:26
@engcom-Hotel
Copy link
Collaborator

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests

@engcom-Hotel
Copy link
Collaborator

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests

@engcom-Hotel
Copy link
Collaborator

✔️ QA Passed

No manual testing required for the changes. This PR improves the code and also removed sprintf() usage from the phrase. sprintf() inside phrase can cause the localization issue. we use %1, %2, etc. inside __() for placeholders. This ensures proper translation and localization support.

The failed integration test is known issue & not related to this PR: https://jira.corp.adobe.com/browse/AC-15195

The remaining build is green hence moving this PR in Merge In Progress.

image

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.

2 participants