mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +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:
@@ -947,7 +947,7 @@ final class WP_Customize_Nav_Menus {
|
||||
}
|
||||
|
||||
$data = array(
|
||||
/* translators: %1$s is the post type name and %2$s is the error message. */
|
||||
/* translators: 1: post type name, 2: error message */
|
||||
'message' => sprintf( __( '%1$s could not be created: %2$s' ), $singular_name, $error->get_error_message() ),
|
||||
);
|
||||
wp_send_json_error( $data );
|
||||
@@ -981,7 +981,7 @@ final class WP_Customize_Nav_Menus {
|
||||
<button type="button" class="button-link item-add">
|
||||
<span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: 1: Title of a menu item, 2: Type of a menu item */
|
||||
/* translators: 1: title of a menu item, 2: type of a menu item */
|
||||
printf( __( 'Add to menu: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.type_label }}' );
|
||||
?>
|
||||
</span>
|
||||
|
||||
@@ -190,7 +190,7 @@ class WP_Http_Curl {
|
||||
if ( ! $this->stream_handle ) {
|
||||
return new WP_Error(
|
||||
'http_request_failed', sprintf(
|
||||
/* translators: 1: fopen() 2: file name */
|
||||
/* translators: 1: fopen(), 2: file name */
|
||||
__( 'Could not open handle for %1$s to %2$s.' ),
|
||||
'fopen()',
|
||||
$r['filename']
|
||||
|
||||
@@ -250,7 +250,7 @@ class WP_Http_Streams {
|
||||
if ( ! $stream_handle ) {
|
||||
return new WP_Error(
|
||||
'http_request_failed', sprintf(
|
||||
/* translators: 1: fopen() 2: file name */
|
||||
/* translators: 1: fopen(), 2: file name */
|
||||
__( 'Could not open handle for %1$s to %2$s.' ),
|
||||
'fopen()',
|
||||
$r['filename']
|
||||
|
||||
@@ -1540,7 +1540,7 @@ function comments_popup_link( $zero = false, $one = false, $more = false, $css_c
|
||||
}
|
||||
|
||||
if ( false === $more ) {
|
||||
/* translators: 1: Number of comments 2: post title */
|
||||
/* translators: 1: number of comments, 2: post title */
|
||||
$more = _n( '%1$s Comment<span class="screen-reader-text"> on %2$s</span>', '%1$s Comments<span class="screen-reader-text"> on %2$s</span>', $number );
|
||||
$more = sprintf( $more, number_format_i18n( $number ), $title );
|
||||
}
|
||||
@@ -1629,7 +1629,7 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null
|
||||
'add_below' => 'comment',
|
||||
'respond_id' => 'respond',
|
||||
'reply_text' => __( 'Reply' ),
|
||||
/* translators: Comment reply button text. 1: Comment author name */
|
||||
/* translators: Comment reply button text. %s: Comment author name */
|
||||
'reply_to_text' => __( 'Reply to %s' ),
|
||||
'login_text' => __( 'Log in to Reply' ),
|
||||
'max_depth' => 0,
|
||||
|
||||
@@ -134,7 +134,7 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
<# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
|
||||
<p class="link-to-original">
|
||||
<?php
|
||||
/* translators: Nav menu item original title. 1: Original title */
|
||||
/* translators: Nav menu item original title. %s: Original title */
|
||||
printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{ data.original_title }}</a>' );
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -30,13 +30,13 @@ do_action( 'rss_tag_pre', 'atom-comments' );
|
||||
<title type="text">
|
||||
<?php
|
||||
if ( is_singular() ) {
|
||||
/* translators: Comments feed title. 1: Post title */
|
||||
/* translators: Comments feed title. %s: Post title */
|
||||
printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() );
|
||||
} elseif ( is_search() ) {
|
||||
/* translators: Comments feed title. 1: Site name, 2: Search query */
|
||||
printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
|
||||
} else {
|
||||
/* translators: Comments feed title. 1: Site name */
|
||||
/* translators: Comments feed title. %s: Site name */
|
||||
printf( ent2ncr( __( 'Comments for %s' ) ), get_wp_title_rss() );
|
||||
}
|
||||
?>
|
||||
@@ -87,7 +87,7 @@ if ( have_comments() ) :
|
||||
/* translators: Individual comment title. 1: Post title, 2: Comment author name */
|
||||
printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
|
||||
} else {
|
||||
/* translators: Comment author title. 1: Comment author name */
|
||||
/* translators: Comment author title. %s: Comment author name */
|
||||
printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -35,13 +35,13 @@ do_action( 'rss_tag_pre', 'rss2-comments' );
|
||||
<title>
|
||||
<?php
|
||||
if ( is_singular() ) {
|
||||
/* translators: Comments feed title. 1: Post title */
|
||||
/* translators: Comments feed title. %s: Post title */
|
||||
printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
|
||||
} elseif ( is_search() ) {
|
||||
/* translators: Comments feed title. 1: Site name, 2: Search query */
|
||||
printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
|
||||
} else {
|
||||
/* translators: Comments feed title. 1: Site name */
|
||||
/* translators: Comments feed title. %s: Site name */
|
||||
printf( ent2ncr( __( 'Comments for %s' ) ), get_wp_title_rss() );
|
||||
}
|
||||
?>
|
||||
@@ -90,7 +90,7 @@ do_action( 'rss_tag_pre', 'rss2-comments' );
|
||||
/* translators: Individual comment title. 1: Post title, 2: Comment author name */
|
||||
printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
|
||||
} else {
|
||||
/* translators: Comment author title. 1: Comment author name */
|
||||
/* translators: Comment author title. %s: Comment author name */
|
||||
printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -3558,42 +3558,42 @@ function human_time_diff( $from, $to = '' ) {
|
||||
if ( $mins <= 1 ) {
|
||||
$mins = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in minutes (min=minute). 1: Number of minutes */
|
||||
/* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes */
|
||||
$since = sprintf( _n( '%s min', '%s mins', $mins ), $mins );
|
||||
} elseif ( $diff < DAY_IN_SECONDS && $diff >= HOUR_IN_SECONDS ) {
|
||||
$hours = round( $diff / HOUR_IN_SECONDS );
|
||||
if ( $hours <= 1 ) {
|
||||
$hours = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in hours. 1: Number of hours */
|
||||
/* translators: Time difference between two dates, in hours. %s: Number of hours */
|
||||
$since = sprintf( _n( '%s hour', '%s hours', $hours ), $hours );
|
||||
} elseif ( $diff < WEEK_IN_SECONDS && $diff >= DAY_IN_SECONDS ) {
|
||||
$days = round( $diff / DAY_IN_SECONDS );
|
||||
if ( $days <= 1 ) {
|
||||
$days = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in days. 1: Number of days */
|
||||
/* translators: Time difference between two dates, in days. %s: Number of days */
|
||||
$since = sprintf( _n( '%s day', '%s days', $days ), $days );
|
||||
} elseif ( $diff < MONTH_IN_SECONDS && $diff >= WEEK_IN_SECONDS ) {
|
||||
$weeks = round( $diff / WEEK_IN_SECONDS );
|
||||
if ( $weeks <= 1 ) {
|
||||
$weeks = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in weeks. 1: Number of weeks */
|
||||
/* translators: Time difference between two dates, in weeks. %s: Number of weeks */
|
||||
$since = sprintf( _n( '%s week', '%s weeks', $weeks ), $weeks );
|
||||
} elseif ( $diff < YEAR_IN_SECONDS && $diff >= MONTH_IN_SECONDS ) {
|
||||
$months = round( $diff / MONTH_IN_SECONDS );
|
||||
if ( $months <= 1 ) {
|
||||
$months = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in months. 1: Number of months */
|
||||
/* translators: Time difference between two dates, in months. %s: Number of months */
|
||||
$since = sprintf( _n( '%s month', '%s months', $months ), $months );
|
||||
} elseif ( $diff >= YEAR_IN_SECONDS ) {
|
||||
$years = round( $diff / YEAR_IN_SECONDS );
|
||||
if ( $years <= 1 ) {
|
||||
$years = 1;
|
||||
}
|
||||
/* translators: Time difference between two dates, in years. 1: Number of years */
|
||||
/* translators: Time difference between two dates, in years. %s: Number of years */
|
||||
$since = sprintf( _n( '%s year', '%s years', $years ), $years );
|
||||
}
|
||||
|
||||
|
||||
@@ -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>',
|
||||
|
||||
@@ -487,7 +487,7 @@ function wp_set_wpdb_vars() {
|
||||
if ( is_wp_error( $prefix ) ) {
|
||||
wp_load_translations_early();
|
||||
wp_die(
|
||||
/* translators: 1: $table_prefix 2: wp-config.php */
|
||||
/* translators: 1: $table_prefix, 2: wp-config.php */
|
||||
sprintf(
|
||||
__( '<strong>ERROR</strong>: %1$s in %2$s can only contain numbers, letters, and underscores.' ),
|
||||
'<code>$table_prefix</code>',
|
||||
|
||||
@@ -2161,7 +2161,8 @@ function upload_is_file_too_big( $upload ) {
|
||||
}
|
||||
|
||||
if ( strlen( $upload['bits'] ) > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
|
||||
return sprintf( __( 'This file is too big. Files must be less than %d KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) );
|
||||
/* translators: %s: maximum allowed file size in kilobytes */
|
||||
return sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) );
|
||||
}
|
||||
|
||||
return $upload;
|
||||
|
||||
@@ -1523,33 +1523,41 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
|
||||
|
||||
switch ( $comment->comment_type ) {
|
||||
case 'trackback':
|
||||
/* translators: 1: Post title */
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'New trackback on your post "%s"' ), $post->post_title ) . "\r\n";
|
||||
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
/* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
/* translators: %s: comment text */
|
||||
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
|
||||
$notify_message .= __( 'You can see all trackbacks on this post here:' ) . "\r\n";
|
||||
/* translators: 1: blog name, 2: post title */
|
||||
$subject = sprintf( __( '[%1$s] Trackback: "%2$s"' ), $blogname, $post->post_title );
|
||||
break;
|
||||
case 'pingback':
|
||||
/* translators: 1: Post title */
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'New pingback on your post "%s"' ), $post->post_title ) . "\r\n";
|
||||
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
/* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
/* translators: %s: comment text */
|
||||
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
|
||||
$notify_message .= __( 'You can see all pingbacks on this post here:' ) . "\r\n";
|
||||
/* translators: 1: blog name, 2: post title */
|
||||
$subject = sprintf( __( '[%1$s] Pingback: "%2$s"' ), $blogname, $post->post_title );
|
||||
break;
|
||||
default: // Comments
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n";
|
||||
/* translators: 1: comment author, 2: comment author's IP address, 3: comment author's hostname */
|
||||
$notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: %s: comment author email */
|
||||
$notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
/* translators: %s: comment text */
|
||||
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
|
||||
$notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n";
|
||||
/* translators: 1: blog name, 2: post title */
|
||||
@@ -1561,10 +1569,13 @@ if ( ! function_exists( 'wp_notify_postauthor' ) ) :
|
||||
|
||||
if ( user_can( $post->post_author, 'edit_comment', $comment->comment_ID ) ) {
|
||||
if ( EMPTY_TRASH_DAYS ) {
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n";
|
||||
} else {
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n";
|
||||
}
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment->comment_ID}#wpbody-content" ) ) . "\r\n";
|
||||
}
|
||||
|
||||
@@ -1687,55 +1698,55 @@ if ( ! function_exists( 'wp_notify_moderator' ) ) :
|
||||
|
||||
switch ( $comment->comment_type ) {
|
||||
case 'trackback':
|
||||
/* translators: 1: Post title */
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'A new trackback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
|
||||
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
|
||||
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
/* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: 1: Trackback/pingback/comment author URL */
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
$notify_message .= __( 'Trackback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
|
||||
break;
|
||||
case 'pingback':
|
||||
/* translators: 1: Post title */
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'A new pingback on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
|
||||
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
|
||||
/* translators: 1: Trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
/* translators: 1: trackback/pingback website name, 2: website IP address, 3: website hostname */
|
||||
$notify_message .= sprintf( __( 'Website: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: 1: Trackback/pingback/comment author URL */
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
$notify_message .= __( 'Pingback excerpt: ' ) . "\r\n" . $comment_content . "\r\n\r\n";
|
||||
break;
|
||||
default: // Comments
|
||||
/* translators: 1: Post title */
|
||||
/* translators: %s: post title */
|
||||
$notify_message = sprintf( __( 'A new comment on the post "%s" is waiting for your approval' ), $post->post_title ) . "\r\n";
|
||||
$notify_message .= get_permalink( $comment->comment_post_ID ) . "\r\n\r\n";
|
||||
/* translators: 1: Comment author name, 2: comment author's IP address, 3: comment author's hostname */
|
||||
/* translators: 1: comment author name, 2: comment author's IP address, 3: comment author's hostname */
|
||||
$notify_message .= sprintf( __( 'Author: %1$s (IP address: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
|
||||
/* translators: 1: Comment author URL */
|
||||
/* translators: %s: comment author email */
|
||||
$notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n";
|
||||
/* translators: 1: Trackback/pingback/comment author URL */
|
||||
/* translators: %s: trackback/pingback/comment author URL */
|
||||
$notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n";
|
||||
/* translators: 1: Comment text */
|
||||
/* translators: %s: comment text */
|
||||
$notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment_content ) . "\r\n\r\n";
|
||||
break;
|
||||
}
|
||||
|
||||
/* translators: Comment moderation. 1: Comment action URL */
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Approve it: %s' ), admin_url( "comment.php?action=approve&c={$comment_id}#wpbody-content" ) ) . "\r\n";
|
||||
|
||||
if ( EMPTY_TRASH_DAYS ) {
|
||||
/* translators: Comment moderation. 1: Comment action URL */
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Trash it: %s' ), admin_url( "comment.php?action=trash&c={$comment_id}#wpbody-content" ) ) . "\r\n";
|
||||
} else {
|
||||
/* translators: Comment moderation. 1: Comment action URL */
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Delete it: %s' ), admin_url( "comment.php?action=delete&c={$comment_id}#wpbody-content" ) ) . "\r\n";
|
||||
}
|
||||
|
||||
/* translators: Comment moderation. 1: Comment action URL */
|
||||
/* translators: Comment moderation. %s: Comment action URL */
|
||||
$notify_message .= sprintf( __( 'Spam it: %s' ), admin_url( "comment.php?action=spam&c={$comment_id}#wpbody-content" ) ) . "\r\n";
|
||||
|
||||
/* translators: Comment moderation. 1: Number of comments awaiting approval */
|
||||
/* translators: Comment moderation. %s: Number of comments awaiting approval */
|
||||
$notify_message .= sprintf(
|
||||
_n(
|
||||
'Currently %s comment is waiting for approval. Please visit the moderation panel:',
|
||||
|
||||
@@ -2849,7 +2849,7 @@ function wp_update_term( $term_id, $taxonomy, $args = array() ) {
|
||||
if ( $empty_slug || ( $parent != $term['parent'] ) ) {
|
||||
$slug = wp_unique_term_slug( $slug, (object) $args );
|
||||
} else {
|
||||
/* translators: 1: Taxonomy term slug */
|
||||
/* translators: %s: taxonomy term slug */
|
||||
return new WP_Error( 'duplicate_term_slug', sprintf( __( 'The slug “%s” is already in use by another term.' ), $slug ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2537,7 +2537,7 @@ function add_theme_support( $feature ) {
|
||||
case 'title-tag':
|
||||
// Can be called in functions.php but must happen before wp_loaded, i.e. not in header.php.
|
||||
if ( did_action( 'wp_loaded' ) ) {
|
||||
/* translators: 1: Theme support 2: hook name */
|
||||
/* translators: 1: title-tag, 2: wp_loaded */
|
||||
_doing_it_wrong(
|
||||
"add_theme_support( 'title-tag' )", sprintf(
|
||||
__( 'Theme support for %1$s should be registered before the %2$s hook.' ),
|
||||
|
||||
@@ -665,15 +665,15 @@ function wp_get_update_data() {
|
||||
$counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'] + $counts['translations'];
|
||||
$titles = array();
|
||||
if ( $counts['wordpress'] ) {
|
||||
/* translators: 1: Number of updates available to WordPress */
|
||||
/* translators: %d: number of updates available to WordPress */
|
||||
$titles['wordpress'] = sprintf( __( '%d WordPress Update' ), $counts['wordpress'] );
|
||||
}
|
||||
if ( $counts['plugins'] ) {
|
||||
/* translators: 1: Number of updates available to plugins */
|
||||
/* translators: %d: number of updates available to plugins */
|
||||
$titles['plugins'] = sprintf( _n( '%d Plugin Update', '%d Plugin Updates', $counts['plugins'] ), $counts['plugins'] );
|
||||
}
|
||||
if ( $counts['themes'] ) {
|
||||
/* translators: 1: Number of updates available to themes */
|
||||
/* translators: %d: number of updates available to themes */
|
||||
$titles['themes'] = sprintf( _n( '%d Theme Update', '%d Theme Updates', $counts['themes'] ), $counts['themes'] );
|
||||
}
|
||||
if ( $counts['translations'] ) {
|
||||
|
||||
@@ -1952,7 +1952,7 @@ All at ###SITENAME###
|
||||
|
||||
$pass_change_email = array(
|
||||
'to' => $user['user_email'],
|
||||
/* translators: User password change notification email subject. 1: Site name */
|
||||
/* translators: User password change notification email subject. %s: Site name */
|
||||
'subject' => __( '[%s] Notice of Password Change' ),
|
||||
'message' => $pass_change_text,
|
||||
'headers' => '',
|
||||
@@ -2009,7 +2009,7 @@ All at ###SITENAME###
|
||||
|
||||
$email_change_email = array(
|
||||
'to' => $user['user_email'],
|
||||
/* translators: User email change notification email subject. 1: Site name */
|
||||
/* translators: User email change notification email subject. %s: Site name */
|
||||
'subject' => __( '[%s] Notice of Email Change' ),
|
||||
'message' => $email_change_text,
|
||||
'headers' => '',
|
||||
|
||||
@@ -348,7 +348,7 @@ class WP_Widget_Media_Image extends WP_Widget_Media {
|
||||
<# if ( ! data.alt && data.currentFilename ) { #>
|
||||
<p class="hidden" id="{{ describedById }}">
|
||||
<?php
|
||||
/* translators: placeholder is image filename */
|
||||
/* translators: %s: image filename */
|
||||
echo sprintf( __( 'Current image: %s' ), '{{ data.currentFilename }}' );
|
||||
?>
|
||||
</p>
|
||||
|
||||
@@ -1648,7 +1648,7 @@ class wpdb {
|
||||
$message = '<h1>' . __( 'Error establishing a database connection' ) . "</h1>\n";
|
||||
|
||||
$message .= '<p>' . sprintf(
|
||||
/* translators: 1: wp-config.php. 2: database host */
|
||||
/* translators: 1: wp-config.php, 2: database host */
|
||||
__( 'This either means that the username and password information in your %1$s file is incorrect or we can’t contact the database server at %2$s. This could mean your host’s database server is down.' ),
|
||||
'<code>wp-config.php</code>',
|
||||
'<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>'
|
||||
|
||||
Reference in New Issue
Block a user