From 4753e67205b37236432870aa49f9808994b01e04 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Tue, 17 Nov 2026 19:58:55 +0530 Subject: [PATCH 1/2] Bundled Themes: Place translator comments directly before their strings. Some translator comments shared a line with a second translatable string, so string extraction attached them to both strings: - In Twenty Ten, Twenty Eleven, Twenty Twelve, Twenty Thirteen and Twenty Fourteen, the "%s: Date." comment for the monthly and yearly archive titles was also attached to the date format strings. - In Twenty Fourteen, the comment for the Featured Content help text was also attached to the "featured" tag slug. - In Twenty Seventeen, the "Hidden accessibility text." comment for "Previous Post" and "Next Post" was also attached to the visible "Previous" and "Next" labels. This moves each comment directly before the gettext call it describes. No string changes. Co-Authored-By: Claude Opus 5.5 --- src/wp-content/themes/twentyeleven/archive.php | 14 ++++++++++---- src/wp-content/themes/twentyfourteen/archive.php | 14 ++++++++++---- .../themes/twentyfourteen/inc/customizer.php | 9 +++++++-- src/wp-content/themes/twentyseventeen/single.php | 12 ++++++++---- src/wp-content/themes/twentyten/archive.php | 14 ++++++++++---- src/wp-content/themes/twentythirteen/archive.php | 14 ++++++++++---- src/wp-content/themes/twentytwelve/archive.php | 14 ++++++++++---- 7 files changed, 65 insertions(+), 26 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/archive.php b/src/wp-content/themes/twentyeleven/archive.php index a21e626b70108..6e43c967d9506 100644 --- a/src/wp-content/themes/twentyeleven/archive.php +++ b/src/wp-content/themes/twentyeleven/archive.php @@ -26,11 +26,17 @@ /* translators: %s: Date. */ printf( __( 'Daily Archives: %s', 'twentyeleven' ), '' . get_the_date() . '' ); } elseif ( is_month() ) { - /* translators: %s: Date. */ - printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '' ); + printf( + /* translators: %s: Date. */ + __( 'Monthly Archives: %s', 'twentyeleven' ), + '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '' + ); } elseif ( is_year() ) { - /* translators: %s: Date. */ - printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '' ); + printf( + /* translators: %s: Date. */ + __( 'Yearly Archives: %s', 'twentyeleven' ), + '' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '' + ); } else { _e( 'Blog Archives', 'twentyeleven' ); } diff --git a/src/wp-content/themes/twentyfourteen/archive.php b/src/wp-content/themes/twentyfourteen/archive.php index f11a57ff1af01..0b43532e3375b 100644 --- a/src/wp-content/themes/twentyfourteen/archive.php +++ b/src/wp-content/themes/twentyfourteen/archive.php @@ -31,11 +31,17 @@ /* translators: %s: Date. */ printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() ); } elseif ( is_month() ) { - /* translators: %s: Date. */ - printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) ); + printf( + /* translators: %s: Date. */ + __( 'Monthly Archives: %s', 'twentyfourteen' ), + get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) + ); } elseif ( is_year() ) { - /* translators: %s: Date. */ - printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) ); + printf( + /* translators: %s: Date. */ + __( 'Yearly Archives: %s', 'twentyfourteen' ), + get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) + ); } else { _e( 'Archives', 'twentyfourteen' ); } diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index 624d4e6207602..8ba5759f38bb1 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfourteen/inc/customizer.php @@ -164,8 +164,13 @@ function twentyfourteen_contextual_help() { 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ), 'content' => '