mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.
Add missing translator comments in `WP_Theme_Install_List_Table` and `wp_notify_postauthor()`. Add missing commas in some translator comments. Fixes #43523. git-svn-id: https://develop.svn.wordpress.org/trunk@42827 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1490,22 +1490,22 @@ function the_archive_title( $before = '', $after = '' ) {
|
||||
*/
|
||||
function get_the_archive_title() {
|
||||
if ( is_category() ) {
|
||||
/* translators: Category archive title. 1: Category name */
|
||||
/* translators: Category archive title. %s: Category name */
|
||||
$title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
|
||||
} elseif ( is_tag() ) {
|
||||
/* translators: Tag archive title. 1: Tag name */
|
||||
/* translators: Tag archive title. %s: Tag name */
|
||||
$title = sprintf( __( 'Tag: %s' ), single_tag_title( '', false ) );
|
||||
} elseif ( is_author() ) {
|
||||
/* translators: Author archive title. 1: Author name */
|
||||
/* translators: Author archive title. %s: Author name */
|
||||
$title = sprintf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
|
||||
} elseif ( is_year() ) {
|
||||
/* translators: Yearly archive title. 1: Year */
|
||||
/* translators: Yearly archive title. %s: Year */
|
||||
$title = sprintf( __( 'Year: %s' ), get_the_date( _x( 'Y', 'yearly archives date format' ) ) );
|
||||
} elseif ( is_month() ) {
|
||||
/* translators: Monthly archive title. 1: Month name and year */
|
||||
/* translators: Monthly archive title. %s: Month name and year */
|
||||
$title = sprintf( __( 'Month: %s' ), get_the_date( _x( 'F Y', 'monthly archives date format' ) ) );
|
||||
} elseif ( is_day() ) {
|
||||
/* translators: Daily archive title. 1: Date */
|
||||
/* translators: Daily archive title. %s: Date */
|
||||
$title = sprintf( __( 'Day: %s' ), get_the_date( _x( 'F j, Y', 'daily archives date format' ) ) );
|
||||
} elseif ( is_tax( 'post_format' ) ) {
|
||||
if ( is_tax( 'post_format', 'post-format-aside' ) ) {
|
||||
@@ -1528,7 +1528,7 @@ function get_the_archive_title() {
|
||||
$title = _x( 'Chats', 'post format archive title' );
|
||||
}
|
||||
} elseif ( is_post_type_archive() ) {
|
||||
/* translators: Post type archive title. 1: Post type name */
|
||||
/* translators: Post type archive title. %s: Post type name */
|
||||
$title = sprintf( __( 'Archives: %s' ), post_type_archive_title( '', false ) );
|
||||
} elseif ( is_tax() ) {
|
||||
$tax = get_taxonomy( get_queried_object()->taxonomy );
|
||||
@@ -2140,7 +2140,7 @@ function get_calendar( $initial = true, $echo = true ) {
|
||||
if ( in_array( $day, $daywithpost ) ) {
|
||||
// any posts today?
|
||||
$date_format = date( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) );
|
||||
/* translators: Post calendar label. 1: Date */
|
||||
/* translators: Post calendar label. %s: Date */
|
||||
$label = sprintf( __( 'Posts published on %s' ), $date_format );
|
||||
$calendar_output .= sprintf(
|
||||
'<a href="%s" aria-label="%s">%s</a>',
|
||||
|
||||
Reference in New Issue
Block a user