Skip to content

Commit 8f40409

Browse files
committed
Help/About: Make translator comments version agnostic and make version translatable on the About page.
In past versions of the About page, translator comments referencing the Field Guide and Release Notes links included the current version number. This change updates these translator comments to remove a specific version number, which was not necessary. This change also abstracts the version number out of the "Read the WordPress X.X Release Notes" string, making it translatable. Props Presskopp, audrasjb, SergeyBiryukov, marybaum. Fixes #54741. git-svn-id: https://develop.svn.wordpress.org/trunk@54219 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0c248dc commit 8f40409

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/wp-admin/about.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
<p>
299299
<?php
300300
printf(
301-
/* translators: %s: WordPress 6.0 Field Guide link. */
301+
/* translators: %s: WordPress Field Guide link. */
302302
__( 'Check out the latest version of the <a href="%s">WordPress Field Guide</a>. It is overflowing with detailed developer notes to help you build with WordPress.' ),
303303
__( 'https://make.wordpress.org/core/2022/05/03/wordpress-6-0-field-guide/' )
304304
);
@@ -309,13 +309,14 @@
309309
<p>
310310
<?php
311311
printf(
312-
/* translators: %s: WordPress 6.0 Release Notes link. */
313-
__( '<a href="%s">Read the WordPress 6.0 Release Notes</a> for more information on the included enhancements and issues fixed, installation information, developer notes and resources, release contributors, and the list of file changes in this release.' ),
312+
/* translators: 1: WordPress Release Notes link, 2: WordPress version number. */
313+
__( '<a href="%1$s">Read the WordPress %2$s Release Notes</a> for more information on the included enhancements and issues fixed, installation information, developer notes and resources, release contributors, and the list of file changes in this release.' ),
314314
sprintf(
315-
/* translators: %s: WordPress version. */
315+
/* translators: %s: WordPress version number. */
316316
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
317317
'6-0'
318-
)
318+
),
319+
'6.0'
319320
);
320321
?>
321322
</p>

0 commit comments

Comments
 (0)