Closed Luwdo closed 3 years ago
Hi @Luwdo. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
@magento give me 2.4-develop instance
Hi @orbitrod. Thank you for your request. I'm working on Magento 2.4-develop instance for you
Hi @orbitrod, here is your Magento instance.
Admin access: https://i-29268-2-4-develop.instances.magento-community.engineering/admin_ef59
Login: 23e98ea3
Password: 662abe20e391
Instance will be terminated in up to 3 hours.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
this is not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
every file differs in the exact same way
This new phrase is being read from: vendor/magento/module-ui/view/base/web/js/grid/editing/editor.js:525
The reason its showing up is because the translate logic is getting a different value out of the translate call then what it passed in, even when no arguments are passed and no translations are actually done.
I have determined how and why this happens: in vendor/magento/module-translation/Model/Js/DataProvider.php calls
$this->translate->render()
this calls vendor/magento/framework/Phrase/Renderer/Composite.php which calls the following renders in this order:there is a debug output from this particular phase being run on the centos system:
you can see that when it hits Magento\Framework\Phrase\Renderer\MessageFormatter it transforms to remove the labeled placeholder with a '0'.
The function that is doing this is the call to
in : Magento\Framework\Phrase\Renderer\MessageFormatter
this function comes from php intl, which on centos systems:
returns:
and on ubuntu returns:
This is a pretty minor issue however in the vendor/magento/module-ui/view/base/web/js/grid/editing/editor.js:525
you have the following:
on centos systems that 'placeholder' won't exist once js translations are run because static content deploy usage of messageFormat has transformed it to a '0'
if you run
php --ri intl
on both systems you will see the libicu versions are different.After some experimentation I found that libicu is not so simple to update for centos 7 in-fact its not a recommended thing to do outside of updating the OS to centos 8.
I am not sure if if the best solution is to update the message formatter to detect if the placeholder has been transformed and restore the named placeholders or maybe if we are translating with no arguments its not needed to run it through the messageFormat function at all.
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.