Improve translatability of text length assessment feedback strings #22307
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
slightly below
condition were the same for taxonomies and non-taxonomies, with the exception of the call to action sentence. There was no good reason for this difference, so I removed one of the strings and use the same string for both taxonomies and non-taxonomies.wordCount
was renamed totextLength
since the value can also be the number of characters (for Japanese texts).Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Posts in English (WordPress)
Text with 101 words
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu molestie est, sit amet dignissim nisl. Cras imperdiet maximus euismod. Fusce posuere nunc sed ultrices efficitur. Suspendisse potenti. Donec mattis neque vitae enim facilisis, eu ultricies erat commodo. Nunc ut varius justo. Proin malesuada congue nunc condimentum mattis. Donec vel rutrum felis. Integer mattis urna sit amet nibh tristique lacinia. Ut augue mauris, porta eu mauris sed, auctor sagittis nulla. Nulla imperdiet iaculis odio et vestibulum. Aenean imperdiet luctus odio, eget porttitor nisi. Curabitur bibendum viverra enim vel fermentum. Aliquam sollicitudin condimentum massa sed varius. Proin pulvinar feugiat pellentesque. In eleifend.Text with 50 words
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas lacinia ultrices leo vel blandit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus viverra felis nec viverra varius. Proin ac tristique ex. Praesent posuere quis lectus et eleifend. Curabitur aliquet felis nec nisl dictum mollis. Phasellus feugiat mi in erat.Posts in Japanese (WordPress)
Text with 237 characters
先りびよス現郡ラ理掲むご弁9属森所ミシハワ英国タホエ障屋じすがた共護と投話ウ能記らかス断案エオワ質89動こトが港述じき部練くぞの待写しら警静ねいフ範嘉塁クイえぜ。資オヲニサ遅検き応村メマヲヒ辺味情ユエヤロ説30取ぼうはて常読責リ出環カナヌ追開教84三以ゃさずふ。調ユワヘス定型な配棋テワツサ規石ネウヱ重2教供ムキ島細サカ誤族ラぞぐぜ西能込トらお削検サ委芸際い始強伯堤墜きりー。一ヒ好問座ウソネケ親帯ネノ線図イネ野果サルホイ報棋フじ物応市る史拶ち歩3温ヨワヱキ光子もやご新押間法喜ト。Text with 121 characters
張ウセニ庁最書あ軸問はレわい工3合加オナヲル有標りぼずそ月電タリモホ削禁シスコ躍原チトヒ海終く記垣ぽーこ素動ぴ西自詳侍勃おは。険オ賞終や治稿らみレゆ路史供フ箱息っの録禁ドみ話分メ現7題でほ良4物クなそ覧6載フノ個会ッド属速くす続楽八列岸ちしさお。Taxonomies (WordPress) or collections (Shopify) in English
I love cats and dogs.
Taxonomies (WordPress) or collections (Shopify) in Japanese
私は猫と犬が大好きです。
Product in English (Shopify)
Text with 50 words
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque tempor est sapien, molestie pulvinar orci faucibus non. Integer et sodales massa. Sed eget mauris eu dui malesuada feugiat et vel magna. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Quisque scelerisque elit ut ligula convallis.Text with 50 words
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas lacinia ultrices leo vel blandit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus viverra felis nec viverra varius. Proin ac tristique ex. Praesent posuere quis lectus et eleifend. Curabitur aliquet felis nec nisl dictum mollis. Phasellus feugiat mi in erat.Product in Japanese (Shopify)
Text with 114 characters
一ヒ好問座ウソネケ親帯ネノ線図イネ野果サルホイ報棋フじ物応市る史拶ち歩3温ヨワヱキ光子もやご新押間法喜ト。張ウセニ庁最書あ軸問はレわい工3合加オナヲル有標りぼずそ月電タリモホ削禁シスコ躍原チトヒ海終く記垣ぽーこ素動ぴ西自詳侍勃おは。Text with 90 characters
険オ賞終や治稿らみレゆ路史供フ箱息っの録禁ドみ話分メ現7題でほ良4物クなそ覧6載フノ個会ッド属速くす続楽八列岸ちしさお。達ぼねそふ回予ワ訪職と服建気タフ批環ユヌヨ阪71武断ヒ聞成へてがぜ腹第部だんざ話巡ト智話ケウ門任助伴ば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 theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/lingo-other-tasks/issues/486