Skip to content
Permalink
Browse files

I18N: Improve translator comments.

* Add missing translator comments.
* Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various `.pot` file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments.

Includes minor code layout fixes.

Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders!

Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov.
Fixes #44360.

git-svn-id: https://develop.svn.wordpress.org/trunk@45926 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 1, 2019
1 parent 425d6fd commit a7513ac8e01aa06cb91e2d39c804e2ab23c32431
Showing with 1,905 additions and 541 deletions.
  1. +2 −2 src/wp-admin/about.php
  2. +1 −0 src/wp-admin/admin-footer.php
  3. +1 −0 src/wp-admin/admin.php
  4. +13 −4 src/wp-admin/async-upload.php
  5. +1 −1 src/wp-admin/comment.php
  6. +1 −0 src/wp-admin/customize.php
  7. +11 −11 src/wp-admin/edit-comments.php
  8. +26 −5 src/wp-admin/edit-form-advanced.php
  9. +2 −0 src/wp-admin/edit-link-form.php
  10. +21 −3 src/wp-admin/edit-tags.php
  11. +17 −1 src/wp-admin/edit.php
  12. +1 −1 src/wp-admin/freedoms.php
  13. +5 −1 src/wp-admin/import.php
  14. +16 −12 src/wp-admin/includes/ajax-actions.php
  15. +1 −1 src/wp-admin/includes/bookmark.php
  16. +13 −3 src/wp-admin/includes/class-bulk-plugin-upgrader-skin.php
  17. +13 −3 src/wp-admin/includes/class-bulk-theme-upgrader-skin.php
  18. +11 −5 src/wp-admin/includes/class-custom-background.php
  19. +19 −6 src/wp-admin/includes/class-custom-image-header.php
  20. +9 −3 src/wp-admin/includes/class-language-pack-upgrader-skin.php
  21. +46 −10 src/wp-admin/includes/class-plugin-installer-skin.php
  22. +16 −3 src/wp-admin/includes/class-plugin-upgrader-skin.php
  23. +39 −13 src/wp-admin/includes/class-theme-installer-skin.php
  24. +31 −13 src/wp-admin/includes/class-theme-upgrader-skin.php
  25. +3 −3 src/wp-admin/includes/class-walker-nav-menu-edit.php
  26. +40 −21 src/wp-admin/includes/class-wp-automatic-updater.php
  27. +1 −1 src/wp-admin/includes/class-wp-comments-list-table.php
  28. +2 −2 src/wp-admin/includes/class-wp-filesystem-ftpext.php
  29. +3 −3 src/wp-admin/includes/class-wp-filesystem-ftpsockets.php
  30. +5 −5 src/wp-admin/includes/class-wp-filesystem-ssh2.php
  31. +12 −2 src/wp-admin/includes/class-wp-links-list-table.php
  32. +29 −5 src/wp-admin/includes/class-wp-list-table.php
  33. +6 −1 src/wp-admin/includes/class-wp-media-list-table.php
  34. +4 −1 src/wp-admin/includes/class-wp-ms-sites-list-table.php
  35. +38 −5 src/wp-admin/includes/class-wp-ms-themes-list-table.php
  36. +33 −3 src/wp-admin/includes/class-wp-ms-users-list-table.php
  37. +8 −1 src/wp-admin/includes/class-wp-plugin-install-list-table.php
  38. +57 −19 src/wp-admin/includes/class-wp-plugins-list-table.php
  39. +10 −2 src/wp-admin/includes/class-wp-posts-list-table.php
  40. +10 −4 src/wp-admin/includes/class-wp-privacy-policy-content.php
  41. +1 −1 src/wp-admin/includes/class-wp-privacy-requests-table.php
  42. +12 −11 src/wp-admin/includes/class-wp-screen.php
  43. +7 −2 src/wp-admin/includes/class-wp-terms-list-table.php
  44. +46 −12 src/wp-admin/includes/class-wp-themes-list-table.php
  45. +39 −8 src/wp-admin/includes/class-wp-users-list-table.php
  46. +34 −9 src/wp-admin/includes/dashboard.php
  47. +3 −1 src/wp-admin/includes/deprecated.php
  48. +18 −2 src/wp-admin/includes/file.php
  49. +15 −8 src/wp-admin/includes/image-edit.php
  50. +33 −8 src/wp-admin/includes/media.php
  51. +9 −3 src/wp-admin/includes/meta-boxes.php
  52. +15 −4 src/wp-admin/includes/misc.php
  53. +44 −8 src/wp-admin/includes/ms.php
  54. +2 −2 src/wp-admin/includes/nav-menu.php
  55. +3 −3 src/wp-admin/includes/network.php
  56. +39 −8 src/wp-admin/includes/plugin-install.php
  57. +5 −1 src/wp-admin/includes/plugin.php
  58. +5 −0 src/wp-admin/includes/revision.php
  59. +31 −8 src/wp-admin/includes/template.php
  60. +29 −7 src/wp-admin/includes/theme.php
  61. +48 −5 src/wp-admin/includes/update-core.php
  62. +53 −14 src/wp-admin/includes/update.php
  63. +2 −1 src/wp-admin/includes/upgrade.php
  64. +4 −1 src/wp-admin/includes/user.php
  65. +12 −2 src/wp-admin/includes/widgets.php
  66. +6 −1 src/wp-admin/link-manager.php
  67. +5 −1 src/wp-admin/maint/repair.php
  68. +20 −5 src/wp-admin/menu.php
  69. +16 −2 src/wp-admin/ms-delete-site.php
  70. +24 −5 src/wp-admin/nav-menus.php
  71. +1 −1 src/wp-admin/network.php
  72. +47 −3 src/wp-admin/network/menu.php
  73. +10 −2 src/wp-admin/network/settings.php
  74. +3 −3 src/wp-admin/network/site-new.php
  75. +2 −0 src/wp-admin/network/site-themes.php
  76. +17 −1 src/wp-admin/network/sites.php
  77. +3 −0 src/wp-admin/network/themes.php
  78. +1 −5 src/wp-admin/network/user-new.php
  79. +7 −1 src/wp-admin/network/users.php
  80. +12 −1 src/wp-admin/options-discussion.php
  81. +8 −3 src/wp-admin/options-general.php
  82. +11 −2 src/wp-admin/options-permalink.php
  83. +10 −2 src/wp-admin/options-reading.php
  84. +5 −1 src/wp-admin/plugin-install.php
  85. +13 −2 src/wp-admin/plugins.php
  86. +1 −0 src/wp-admin/post.php
  87. +3 −3 src/wp-admin/setup-config.php
  88. +2 −2 src/wp-admin/theme-editor.php
  89. +3 −2 src/wp-admin/theme-install.php
  90. +31 −6 src/wp-admin/themes.php
  91. +9 −1 src/wp-admin/tools.php
  92. +82 −33 src/wp-admin/update-core.php
  93. +4 −0 src/wp-admin/update.php
  94. +26 −6 src/wp-admin/upgrade.php
  95. +51 −29 src/wp-admin/user-edit.php
  96. +16 −7 src/wp-admin/user-new.php
  97. +5 −4 src/wp-admin/users.php
  98. +6 −1 src/wp-admin/widgets.php
  99. +1 −1 src/wp-includes/admin-bar.php
  100. +1 −1 src/wp-includes/author-template.php
  101. +1 −0 src/wp-includes/bookmark-template.php
  102. +3 −1 src/wp-includes/category-template.php
  103. +1 −1 src/wp-includes/category.php
  104. +4 −3 src/wp-includes/class-walker-comment.php
  105. +1 −1 src/wp-includes/class-wp-customize-manager.php
  106. +7 −2 src/wp-includes/class-wp-customize-nav-menus.php
  107. +2 −2 src/wp-includes/class-wp-date-query.php
  108. +1 −1 src/wp-includes/class-wp-query.php
  109. +40 −6 src/wp-includes/class-wp-theme.php
  110. +11 −5 src/wp-includes/comment-template.php
  111. +1 −0 src/wp-includes/embed.php
  112. +8 −4 src/wp-includes/functions.php
  113. +1 −0 src/wp-includes/general-template.php
  114. +9 −1 src/wp-includes/link-template.php
  115. +1 −1 src/wp-includes/load.php
  116. +15 −3 src/wp-includes/media-template.php
  117. +6 −1 src/wp-includes/media.php
  118. +42 −6 src/wp-includes/ms-functions.php
  119. +2 −2 src/wp-includes/ms-load.php
  120. +2 −2 src/wp-includes/nav-menu.php
  121. +12 −6 src/wp-includes/option.php
  122. +2 −1 src/wp-includes/pluggable.php
  123. +8 −2 src/wp-includes/post-template.php
  124. +80 −16 src/wp-includes/post.php
  125. +1 −1 src/wp-includes/query.php
  126. +1 −0 src/wp-includes/rest-api.php
  127. +3 −0 src/wp-includes/rest-api/class-wp-rest-request.php
  128. +6 −1 src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
  129. +1 −0 src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php
  130. +4 −0 src/wp-includes/script-loader.php
  131. +6 −3 src/wp-includes/theme-compat/comments.php
  132. +6 −6 src/wp-includes/theme-compat/sidebar.php
  133. +1 −1 src/wp-includes/theme.php
  134. +8 −1 src/wp-includes/user.php
  135. +27 −5 src/wp-includes/widgets.php
  136. +3 −1 src/wp-includes/widgets/class-wp-nav-menu-widget.php
  137. +1 −1 src/wp-includes/widgets/class-wp-widget-recent-comments.php
  138. +24 −4 src/wp-includes/wp-db.php
  139. +5 −5 src/wp-login.php
@@ -77,7 +77,7 @@
if ( current_user_can( 'install_plugins' ) ) {
printf(
/* translators: 1: link to /wp-admin/site-health.php 2: link to /wp-admin/site-health.php?tab=debug */
/* translators: 1: link to /wp-admin/site-health.php, 2: link to /wp-admin/site-health.php?tab=debug */
__( ' <a href="%1$s">Check your site status</a>, and <a href="%2$s">learn how to debug issues</a>.' ),
admin_url( 'site-health.php' ),
admin_url( 'site-health.php?tab=debug' )
@@ -142,7 +142,7 @@
<p>
<?php
printf(
/* translators: 1: wp_body_open 2: <body> */
/* translators: 1: wp_body_open, 2: <body> */
__( '5.2 introduces a %1$s hook, which lets themes support injecting code right at the beginning of the %2$s element.' ),
'<code>wp_body_open</code>',
'<code>&lt;body&gt;</code>'
@@ -32,6 +32,7 @@
?>
<p id="footer-left" class="alignleft">
<?php
/* translators: %s: https://wordpress.org/ */
$text = sprintf( __( 'Thank you for creating with <a href="%s">WordPress</a>.' ), __( 'https://wordpress.org/' ) );
/**
* Filters the "Thank you" text displayed in the admin footer.
@@ -258,6 +258,7 @@
}
if ( ! ( file_exists( WP_PLUGIN_DIR . "/$plugin_page" ) && is_file( WP_PLUGIN_DIR . "/$plugin_page" ) ) && ! ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) && is_file( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) ) {
/* translators: %s: Admin page generated by a plugin. */
wp_die( sprintf( __( 'Cannot load %s.' ), htmlentities( $plugin_page ) ) );
}
@@ -92,10 +92,19 @@
$id = media_handle_upload( 'async-upload', $post_id );
if ( is_wp_error( $id ) ) {
echo '<div class="error-div error">
<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">' . __( 'Dismiss' ) . '</button>
<strong>' . sprintf( __( '&#8220;%s&#8221; has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ) . '</strong><br />' .
esc_html( $id->get_error_message() ) . '</div>';
printf(
'<div class="error-div error">%s <strong>%s</strong><br />%s</div>',
sprintf(
'<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>',
__( 'Dismiss' )
),
sprintf(
/* translators: %s: Name of the file that failed to upload. */
__( '&#8220;%s&#8221; has failed to upload.' ),
esc_html( $_FILES['async-upload']['name'] )
),
esc_html( $id->get_error_message() )
);
exit;
}
@@ -204,8 +204,8 @@
<th scope="row"><?php _e( 'Submitted on' ); ?></th>
<td>
<?php
/* translators: 1: comment date, 2: comment time */
$submitted = sprintf(
/* translators: 1: comment date, 2: comment time */
__( '%1$s at %2$s' ),
/* translators: comment date format. See https://secure.php.net/date */
get_comment_date( __( 'Y/m/d' ), $comment ),
@@ -207,6 +207,7 @@
<div class="accordion-section-title">
<span class="preview-notice">
<?php
/* translators: %s: Site title */
echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
?>
</span>
@@ -152,24 +152,24 @@
$comments_count = wp_count_comments( $post_id );
$draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '&hellip;' );
if ( $comments_count->moderated > 0 ) {
/* translators: 1: comments count, 2: post title */
$title = sprintf(
/* translators: 1: comments count, 2: post title */
__( 'Comments (%1$s) on &#8220;%2$s&#8221;' ),
number_format_i18n( $comments_count->moderated ),
$draft_or_post_title
);
} else {
/* translators: %s: post title */
$title = sprintf(
/* translators: %s: post title */
__( 'Comments on &#8220;%s&#8221;' ),
$draft_or_post_title
);
}
} else {
$comments_count = wp_count_comments();
if ( $comments_count->moderated > 0 ) {
/* translators: %s: comments count */
$title = sprintf(
/* translators: %s: comments count */
__( 'Comments (%s)' ),
number_format_i18n( $comments_count->moderated )
);
@@ -225,8 +225,8 @@
<h1 class="wp-heading-inline">
<?php
if ( $post_id ) {
/* translators: %s: link to post */
printf(
/* translators: %s: link to post */
__( 'Comments on &#8220;%s&#8221;' ),
sprintf(
'<a href="%1$s">%2$s</a>',
@@ -243,8 +243,8 @@
<?php
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
echo '<span class="subtitle">';
/* translators: %s: search keywords */
printf(
/* translators: %s: search keywords */
__( 'Search results for &#8220;%s&#8221;' ),
wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '&hellip;' )
);
@@ -282,34 +282,34 @@
if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) {
if ( $approved > 0 ) {
/* translators: %s: number of comments approved */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
}
if ( $spammed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
/* translators: %s: number of comments marked as spam */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
}
if ( $unspammed > 0 ) {
/* translators: %s: number of comments restored from the spam */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed );
}
if ( $trashed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
/* translators: %s: number of comments moved to the Trash */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
}
if ( $untrashed > 0 ) {
/* translators: %s: number of comments restored from the Trash */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment restored from the Trash', '%s comments restored from the Trash', $untrashed ), $untrashed );
}
if ( $deleted > 0 ) {
/* translators: %s: number of comments permanently deleted */
/* translators: %s: number of comments */
$messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted );
}
@@ -180,6 +180,7 @@
6 => __( 'Post published.' ) . $view_post_link_html,
7 => __( 'Post saved.' ),
8 => __( 'Post submitted.' ) . $preview_post_link_html,
/* translators: %s: scheduled date for the post */
9 => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
10 => __( 'Post draft updated.' ) . $preview_post_link_html,
);
@@ -194,6 +195,7 @@
6 => __( 'Page published.' ) . $view_page_link_html,
7 => __( 'Page saved.' ),
8 => __( 'Page submitted.' ) . $preview_page_link_html,
/* translators: %s: scheduled date for the page */
9 => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
10 => __( 'Page draft updated.' ) . $preview_page_link_html,
);
@@ -238,7 +240,11 @@
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) {
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
$notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) );
$notice = sprintf(
/* translators: %s: URL to view the autosave */
__( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ),
get_edit_post_link( $autosave->ID )
);
break;
}
}
@@ -292,7 +298,11 @@
);
get_current_screen()->set_help_sidebar(
'<p>' . sprintf( __( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ), 'tools.php' ) . '</p>' .
'<p>' . sprintf(
/* translators: %s: URL to Press This bookmarklet */
__( 'You can also create posts with the <a href="%s">Press This bookmarklet</a>.' ),
'tools.php'
) . '</p>' .
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://wordpress.org/support/article/wordpress-editor/">Documentation on Writing and Editing Posts</a>' ) . '</p>' .
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
@@ -359,8 +369,11 @@
}
if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) {
/* translators: %s: Featured Image */
$publish_box .= '<li>' . sprintf( __( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ), esc_html( $post_type_object->labels->featured_image ) ) . '</li>';
$publish_box .= '<li>' . sprintf(
/* translators: %s: Featured Image */
__( '<strong>%s</strong> &mdash; This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the image as a post thumbnail on the home page, a custom header, etc.' ),
esc_html( $post_type_object->labels->featured_image )
) . '</li>';
}
$publish_box .= '</ul>';
@@ -577,7 +590,15 @@
);
?>
<table id="post-status-info"><tbody><tr>
<td id="wp-word-count" class="hide-if-no-js"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>
<td id="wp-word-count" class="hide-if-no-js">
<?php
printf(
/* translators: %s: Number of words */
__( 'Word count: %s' ),
'<span class="word-count">0</span>'
);
?>
</td>
<td class="autosave-info">
<span class="autosave-message">&nbsp;</span>
<?php
@@ -12,11 +12,13 @@
}
if ( ! empty( $link_id ) ) {
/* translators: %s: URL to Links screen */
$heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' );
$submit_text = __( 'Update Link' );
$form_name = 'editlink';
$nonce_action = 'update-bookmark_' . $link_id;
} else {
/* translators: %s: URL to Links screen */
$heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
$submit_text = __( 'Add Link' );
$form_name = 'addlink';
@@ -242,7 +242,11 @@
if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $taxonomy ) {
$help = '';
if ( 'category' == $taxonomy ) {
$help = '<p>' . sprintf( __( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ), 'options-writing.php' ) . '</p>';
$help = '<p>' . sprintf(
/* translators: %s: URL to Writing Settings screen */
__( 'You can use categories to define sections of your site and group related posts. The default category is &#8220;Uncategorized&#8221; until you change it in your <a href="%s">writing settings</a>.' ),
'options-writing.php'
) . '</p>';
} elseif ( 'link_category' == $taxonomy ) {
$help = '<p>' . __( 'You can create groups of links by using Link Categories. Link Category names must be unique and Link Categories are separate from the categories you use for posts.' ) . '</p>';
} else {
@@ -596,13 +600,27 @@
</p>
<?php if ( current_user_can( 'import' ) ) : ?>
<p>
<?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ); ?>
<?php
printf(
/* translators: %s: URL to Categories to Tags Converter tool */
__( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ),
esc_url( $import_link )
);
?>
</p>
<?php endif; ?>
</div>
<?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?>
<div class="form-wrap edit-term-notes">
<p><?php printf( __( 'Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.' ), esc_url( $import_link ) ); ?></p>
<p>
<?php
printf(
/* translators: %s: URL to Categories to Tags Converter tool */
__( 'Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.' ),
esc_url( $import_link )
);
?>
</p>
</div>
<?php
endif;
@@ -314,26 +314,42 @@
$bulk_messages = array();
$bulk_messages['post'] = array(
/* translators: %s: number of posts */
'updated' => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
/* translators: %s: number of posts */
_n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ),
/* translators: %s: number of posts */
'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ),
/* translators: %s: number of posts */
'trashed' => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ),
/* translators: %s: number of posts */
'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ),
);
$bulk_messages['page'] = array(
/* translators: %s: number of pages */
'updated' => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
/* translators: %s: number of pages */
_n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ),
/* translators: %s: number of pages */
'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ),
/* translators: %s: number of pages */
'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ),
/* translators: %s: number of pages */
'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
);
$bulk_messages['wp_block'] = array(
/* translators: %s: number of blocks */
'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
/* translators: %s: number of blocks */
_n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
/* translators: %s: number of blocks */
'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
/* translators: %s: number of blocks */
'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
/* translators: %s: number of blocks */
'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
);
@@ -114,7 +114,7 @@
$plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
$themes_url = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
printf(
/* translators: %s: https://wordpress.org/about/license/ */
/* translators: 1: URL to Plugins screen, 2: URL to Themes screen, 3: https://wordpress.org/about/license/ */
__( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ),
$plugins_url,
$themes_url,
@@ -223,7 +223,11 @@
}
if ( current_user_can( 'install_plugins' ) ) {
echo '<p>' . sprintf( __( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '</p>';
echo '<p>' . sprintf(
/* translators: %s: URL to Add Plugins screen */
__( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ),
esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) )
) . '</p>';
}
?>

0 comments on commit a7513ac

Please sign in to comment.
You can’t perform that action at this time.