WordPress / wporg-main-2022

A block-based child theme for WordPress.org, plus local environment
65 stars 26 forks source link

Don't use hardcoded current WordPress-version in string #283

Closed tobifjellner closed 1 year ago

tobifjellner commented 1 year ago

Describe the bug As I'm translating the strings for the coming roll-out of new wp-org design to Rosetta, I noted a string that should include current WordPress version as a variable, rather than as hardcoded text: This is an archive of every release we've done that we have a record of.<br>None of these are safe to use, except the <strong>latest</strong> in the 6.2 series, which is actively maintained.

Ref: source/wp-content/themes/wporg-main-2022/patterns/download-releases.php:19

Additional context Whenever a string is slightly changed, it needs to be translated again. In most cases, the previous translation will pop up as a suggestion, so it may be a small task. But having the need to do this for several languages means that this string unnecessarily will fall back to US English every time, until the string gets picked up and corrected.

dd32 commented 1 year ago

The [stable_branch] shortcode exists for this purpose.

I've