From 50bb92d24c84bd66715f572fb36459aad73c74a9 Mon Sep 17 00:00:00 2001 From: ren <18050944+renintw@users.noreply.github.com> Date: Wed, 18 Oct 2023 00:47:39 +0900 Subject: [PATCH] Document meta: Improve the consistency of s --- .../themes/wporg-showcase-2022/functions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/wp-content/themes/wporg-showcase-2022/functions.php b/source/wp-content/themes/wporg-showcase-2022/functions.php index 86fc10b2..161e3c31 100644 --- a/source/wp-content/themes/wporg-showcase-2022/functions.php +++ b/source/wp-content/themes/wporg-showcase-2022/functions.php @@ -406,15 +406,18 @@ function document_title( $parts ) { $parts['title'] = sprintf( __( '%s - WordPress Showcase', 'wporg' ), $parts['title'] ); } elseif ( is_tag() ) { // translators: %s: The name of the tag - $parts['title'] = sprintf( __( 'Sites tagged as "%s"', 'wporg' ), strtolower( $parts['title'] ) ); + $parts['title'] = sprintf( __( 'Showcase sites tagged as "%s"', 'wporg' ), strtolower( $parts['title'] ) ); } elseif ( is_category() ) { // translators: %s: The name of the tag - $parts['title'] = sprintf( __( 'Sites categorized as "%s"', 'wporg' ), strtolower( $parts['title'] ) ); + $parts['title'] = sprintf( __( 'Showcase sites categorized as "%s"', 'wporg' ), strtolower( $parts['title'] ) ); + } elseif ( is_author() ) { + // translators: %s: Author name + $parts['title'] = sprintf( __( 'Showcase sites by %s', 'wporg' ), $parts['title'] ); } else { $term_names = wp_list_pluck( get_applied_filter_list(), 'name' ); if ( $term_names ) { - // translators: %s list of terms used for filtering. - $parts['title'] = sprintf( __( 'Sites filtered by: %s', 'wporg' ), implode( ', ', $term_names ) ); + // translators: %s: list of terms used for filtering + $parts['title'] = sprintf( __( 'Showcase sites filtered by: %s', 'wporg' ), implode( ', ', $term_names ) ); } }