19701 try to come up with a solution where html tags in translations are not reliant on the order#21938
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
3 similar comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Pull Request Test Coverage Report for Build 91da0f367dfc4b28a114602b154580fcc70de6b1Details
💛 - Coveralls |
There was a problem hiding this comment.
As you see in the comments you got, the helpers package should not be added to.
The reason for this is that we don't want to maintain a random assortment of helpers in a helper package. If there is a need for a overarching package. You could create a specific one. The smaller and targeted, the less maintenance it needs?
Why did you add it to helpers in the first place?
There was a problem hiding this comment.
I was thinking it would be easier to use in the rest of the addon/premium
There was a problem hiding this comment.
I moved it to the helpers folder, but I'm thinking we should have a separate package or fix the issue at the source( fixing createInterpolateElement).
There was a problem hiding this comment.
Maybe. But it seems to me this is very WP plugin related. And we have API (editor-modules) to expose to our other plugins.
Also implements it in the site basic page tests for i18nCreateInterpolateElement fix lint restore testURL remove jsdom
This reverts commit e2421b1.
370ff4d to
e258374
Compare
|
Followup comment: we decided to keep it the way it is and write the translation in a way to avoid injecting tags, |
|
Temporary solution. |
…-with-a-solution-where-html-tags-in-translations-are-not-reliant-on-the-order
refine test
29158da to
ee859f8
Compare
There was a problem hiding this comment.
CR && AT ✅
Though I did not manage to get the Loco translation thing working. I just adapted the source string to be reversed already 😉
I'm holding of merging for now, as I'm not sure about our plan for implementation? This is just adding it in one location anyway. Slack question
|
Ok, can be merged. More follow-up needed and created this issue to keep track of that |
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
wp-plugins-and it ends with the underscore and the country locale.pofile, click on it and select the file you renamed, select to location to "Custom", Make sure the name of the file matches the name as instructed above the upload button.%2$stagline in your WordPress settings%1$s."Error in translation for...and mention the translation and the error.Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes Try to come up with a solution where HTML tags in translations are not reliant on the order