From e1996633228749cdc2d92bc04cc535d45367bfa4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 3 Sep 2019 00:41:05 +0000 Subject: [PATCH] I18N: Capitalize translator comments consistently, add trailing punctuation. Includes minor code layout fixes. See #44360. Built from https://develop.svn.wordpress.org/trunk@45932 git-svn-id: http://core.svn.wordpress.org/trunk@45743 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-activate.php | 8 +- wp-admin/about.php | 22 +-- wp-admin/admin-header.php | 8 +- wp-admin/comment.php | 10 +- wp-admin/credits.php | 8 +- wp-admin/customize.php | 2 +- wp-admin/edit-comments.php | 22 +-- wp-admin/edit-form-advanced.php | 20 +-- wp-admin/edit-form-blocks.php | 2 +- wp-admin/edit-form-comment.php | 6 +- wp-admin/edit-link-form.php | 4 +- wp-admin/edit-tags.php | 10 +- wp-admin/edit.php | 32 ++--- wp-admin/freedoms.php | 6 +- wp-admin/import.php | 20 +-- wp-admin/includes/ajax-actions.php | 72 +++++----- wp-admin/includes/bookmark.php | 2 +- .../class-bulk-plugin-upgrader-skin.php | 2 +- .../class-bulk-theme-upgrader-skin.php | 2 +- .../includes/class-bulk-upgrader-skin.php | 6 +- wp-admin/includes/class-core-upgrader.php | 2 +- wp-admin/includes/class-custom-background.php | 4 +- .../includes/class-custom-image-header.php | 26 ++-- .../class-language-pack-upgrader-skin.php | 2 +- .../includes/class-language-pack-upgrader.php | 2 +- .../includes/class-plugin-installer-skin.php | 2 +- wp-admin/includes/class-plugin-upgrader.php | 4 +- .../includes/class-theme-installer-skin.php | 4 +- .../includes/class-theme-upgrader-skin.php | 6 +- wp-admin/includes/class-theme-upgrader.php | 14 +- .../class-walker-nav-menu-checklist.php | 2 +- .../includes/class-walker-nav-menu-edit.php | 6 +- .../includes/class-wp-automatic-updater.php | 44 +++--- .../includes/class-wp-comments-list-table.php | 121 +++++++++++++--- .../includes/class-wp-community-events.php | 4 +- wp-admin/includes/class-wp-debug-data.php | 40 +++--- .../includes/class-wp-filesystem-base.php | 6 +- .../includes/class-wp-filesystem-ftpext.php | 2 +- .../class-wp-filesystem-ftpsockets.php | 2 +- .../includes/class-wp-filesystem-ssh2.php | 6 +- .../includes/class-wp-links-list-table.php | 6 +- wp-admin/includes/class-wp-list-table.php | 14 +- .../includes/class-wp-media-list-table.php | 40 +++--- .../includes/class-wp-ms-sites-list-table.php | 4 +- .../class-wp-ms-themes-list-table.php | 26 ++-- .../includes/class-wp-ms-users-list-table.php | 6 +- .../class-wp-plugin-install-list-table.php | 28 ++-- .../includes/class-wp-plugins-list-table.php | 95 +++++++++---- .../includes/class-wp-posts-list-table.php | 38 ++--- .../class-wp-privacy-policy-content.php | 132 +++++++++--------- .../class-wp-privacy-requests-table.php | 8 +- wp-admin/includes/class-wp-screen.php | 2 +- .../class-wp-site-health-auto-updates.php | 6 +- wp-admin/includes/class-wp-site-health.php | 28 ++-- .../includes/class-wp-terms-list-table.php | 12 +- .../class-wp-theme-install-list-table.php | 14 +- .../includes/class-wp-themes-list-table.php | 16 +-- wp-admin/includes/class-wp-upgrader.php | 2 +- .../includes/class-wp-users-list-table.php | 27 ++-- wp-admin/includes/dashboard.php | 127 ++++++++++++----- wp-admin/includes/deprecated.php | 4 +- wp-admin/includes/file.php | 10 +- wp-admin/includes/image-edit.php | 2 +- wp-admin/includes/media.php | 40 +++--- wp-admin/includes/meta-boxes.php | 36 ++--- wp-admin/includes/misc.php | 14 +- wp-admin/includes/ms-deprecated.php | 2 +- wp-admin/includes/ms.php | 26 ++-- wp-admin/includes/nav-menu.php | 4 +- wp-admin/includes/network.php | 24 ++-- wp-admin/includes/plugin-install.php | 32 ++--- wp-admin/includes/plugin.php | 12 +- wp-admin/includes/post.php | 4 +- wp-admin/includes/privacy-tools.php | 4 +- wp-admin/includes/revision.php | 10 +- wp-admin/includes/schema.php | 20 +-- wp-admin/includes/template.php | 20 +-- wp-admin/includes/theme.php | 32 ++--- wp-admin/includes/translation-install.php | 6 +- wp-admin/includes/update-core.php | 12 +- wp-admin/includes/update.php | 72 +++++----- wp-admin/includes/upgrade.php | 24 ++-- wp-admin/includes/user.php | 2 +- wp-admin/includes/widgets.php | 6 +- wp-admin/index.php | 2 +- wp-admin/install.php | 10 +- wp-admin/link-manager.php | 6 +- wp-admin/link-parse-opml.php | 2 +- wp-admin/maint/repair.php | 18 +-- wp-admin/menu.php | 14 +- wp-admin/ms-delete-site.php | 8 +- wp-admin/nav-menus.php | 24 ++-- wp-admin/network/menu.php | 10 +- wp-admin/network/settings.php | 6 +- wp-admin/network/site-info.php | 2 +- wp-admin/network/site-new.php | 10 +- wp-admin/network/site-settings.php | 2 +- wp-admin/network/site-themes.php | 6 +- wp-admin/network/site-users.php | 2 +- wp-admin/network/sites.php | 22 +-- wp-admin/network/themes.php | 10 +- wp-admin/network/upgrade.php | 2 +- wp-admin/network/users.php | 4 +- wp-admin/options-discussion.php | 10 +- wp-admin/options-general.php | 16 +-- wp-admin/options-permalink.php | 34 ++--- wp-admin/options-privacy.php | 10 +- wp-admin/options-reading.php | 12 +- wp-admin/options-writing.php | 6 +- wp-admin/options.php | 2 +- wp-admin/plugin-editor.php | 10 +- wp-admin/plugins.php | 16 +-- wp-admin/post.php | 2 +- wp-admin/press-this.php | 2 +- wp-admin/privacy.php | 6 +- wp-admin/revision.php | 2 +- wp-admin/setup-config.php | 2 +- wp-admin/site-health-info.php | 6 +- wp-admin/site-health.php | 10 +- wp-admin/theme-editor.php | 10 +- wp-admin/theme-install.php | 20 +-- wp-admin/themes.php | 22 +-- wp-admin/tools.php | 2 +- wp-admin/update-core.php | 48 +++---- wp-admin/update.php | 8 +- wp-admin/upgrade.php | 10 +- wp-admin/upload.php | 14 +- wp-admin/user-edit.php | 12 +- wp-admin/user-new.php | 4 +- wp-admin/users.php | 12 +- wp-admin/widgets.php | 2 +- wp-content/themes/twentyeleven/404.php | 2 +- wp-content/themes/twentyeleven/archive.php | 6 +- wp-content/themes/twentyeleven/author.php | 4 +- wp-content/themes/twentyeleven/category.php | 2 +- .../themes/twentyeleven/content-featured.php | 8 +- .../themes/twentyeleven/content-gallery.php | 12 +- .../themes/twentyeleven/content-image.php | 12 +- .../themes/twentyeleven/content-quote.php | 8 +- .../themes/twentyeleven/content-single.php | 14 +- wp-content/themes/twentyeleven/content.php | 8 +- wp-content/themes/twentyeleven/functions.php | 24 ++-- wp-content/themes/twentyeleven/header.php | 2 +- wp-content/themes/twentyeleven/image.php | 2 +- .../themes/twentyeleven/inc/theme-options.php | 4 +- wp-content/themes/twentyeleven/search.php | 2 +- wp-content/themes/twentyeleven/showcase.php | 4 +- wp-content/themes/twentyeleven/tag.php | 2 +- .../themes/twentyfifteen/author-bio.php | 2 +- wp-content/themes/twentyfifteen/comments.php | 4 +- .../themes/twentyfifteen/content-link.php | 2 +- .../themes/twentyfifteen/content-none.php | 2 +- wp-content/themes/twentyfifteen/content.php | 2 +- wp-content/themes/twentyfifteen/functions.php | 8 +- .../themes/twentyfifteen/inc/back-compat.php | 6 +- .../twentyfifteen/inc/template-tags.php | 4 +- wp-content/themes/twentyfifteen/search.php | 2 +- wp-content/themes/twentyfourteen/archive.php | 6 +- wp-content/themes/twentyfourteen/author.php | 2 +- wp-content/themes/twentyfourteen/category.php | 2 +- wp-content/themes/twentyfourteen/comments.php | 4 +- .../themes/twentyfourteen/content-aside.php | 2 +- .../themes/twentyfourteen/content-audio.php | 2 +- .../themes/twentyfourteen/content-gallery.php | 2 +- .../themes/twentyfourteen/content-image.php | 2 +- .../themes/twentyfourteen/content-link.php | 2 +- .../themes/twentyfourteen/content-none.php | 2 +- .../themes/twentyfourteen/content-quote.php | 2 +- .../themes/twentyfourteen/content-video.php | 2 +- wp-content/themes/twentyfourteen/content.php | 2 +- .../themes/twentyfourteen/functions.php | 6 +- .../themes/twentyfourteen/inc/back-compat.php | 6 +- .../themes/twentyfourteen/inc/customizer.php | 8 +- .../twentyfourteen/inc/featured-content.php | 2 +- .../twentyfourteen/inc/template-tags.php | 2 +- .../themes/twentyfourteen/inc/widgets.php | 4 +- wp-content/themes/twentyfourteen/search.php | 2 +- wp-content/themes/twentyfourteen/tag.php | 2 +- .../class-twentynineteen-walker-comment.php | 4 +- wp-content/themes/twentynineteen/comments.php | 4 +- .../themes/twentynineteen/inc/back-compat.php | 6 +- .../twentynineteen/inc/template-functions.php | 2 +- .../twentynineteen/inc/template-tags.php | 14 +- wp-content/themes/twentynineteen/single.php | 2 +- .../template-parts/content/content-none.php | 2 +- .../template-parts/content/content-page.php | 2 +- .../template-parts/content/content-single.php | 2 +- .../template-parts/content/content.php | 2 +- .../template-parts/header/entry-header.php | 2 +- .../template-parts/post/author-bio.php | 2 +- .../template-parts/post/discussion-meta.php | 2 +- .../themes/twentyseventeen/comments.php | 4 +- .../themes/twentyseventeen/functions.php | 7 +- .../twentyseventeen/inc/back-compat.php | 6 +- .../themes/twentyseventeen/inc/customizer.php | 2 +- .../twentyseventeen/inc/template-tags.php | 10 +- wp-content/themes/twentyseventeen/search.php | 2 +- .../page/content-front-page-panels.php | 2 +- .../page/content-front-page.php | 2 +- .../template-parts/post/content-audio.php | 2 +- .../template-parts/post/content-gallery.php | 2 +- .../template-parts/post/content-image.php | 2 +- .../template-parts/post/content-none.php | 2 +- .../template-parts/post/content-video.php | 2 +- .../template-parts/post/content.php | 2 +- wp-content/themes/twentysixteen/comments.php | 4 +- wp-content/themes/twentysixteen/functions.php | 15 +- wp-content/themes/twentysixteen/image.php | 2 +- .../themes/twentysixteen/inc/back-compat.php | 6 +- .../twentysixteen/inc/template-tags.php | 4 +- wp-content/themes/twentysixteen/search.php | 2 +- .../template-parts/biography.php | 2 +- .../template-parts/content-none.php | 2 +- .../template-parts/content-page.php | 2 +- .../template-parts/content-search.php | 4 +- .../template-parts/content-single.php | 2 +- .../twentysixteen/template-parts/content.php | 4 +- wp-content/themes/twentyten/archive.php | 6 +- wp-content/themes/twentyten/author.php | 4 +- wp-content/themes/twentyten/category.php | 2 +- wp-content/themes/twentyten/functions.php | 30 ++-- wp-content/themes/twentyten/header.php | 2 +- .../themes/twentyten/loop-attachment.php | 18 +-- wp-content/themes/twentyten/loop-single.php | 4 +- wp-content/themes/twentyten/loop.php | 8 +- wp-content/themes/twentyten/search.php | 2 +- wp-content/themes/twentyten/tag.php | 2 +- wp-content/themes/twentythirteen/archive.php | 6 +- .../themes/twentythirteen/author-bio.php | 4 +- wp-content/themes/twentythirteen/author.php | 2 +- wp-content/themes/twentythirteen/category.php | 2 +- .../themes/twentythirteen/content-aside.php | 2 +- .../themes/twentythirteen/content-audio.php | 2 +- .../themes/twentythirteen/content-chat.php | 2 +- .../themes/twentythirteen/content-gallery.php | 3 +- .../themes/twentythirteen/content-image.php | 2 +- .../themes/twentythirteen/content-link.php | 2 +- .../themes/twentythirteen/content-none.php | 2 +- .../themes/twentythirteen/content-quote.php | 2 +- .../themes/twentythirteen/content-status.php | 2 +- .../themes/twentythirteen/content-video.php | 2 +- wp-content/themes/twentythirteen/content.php | 2 +- .../themes/twentythirteen/functions.php | 26 ++-- wp-content/themes/twentythirteen/image.php | 2 +- .../themes/twentythirteen/inc/back-compat.php | 6 +- wp-content/themes/twentythirteen/search.php | 2 +- wp-content/themes/twentythirteen/tag.php | 2 +- .../twentythirteen/taxonomy-post_format.php | 2 +- wp-content/themes/twentytwelve/archive.php | 6 +- wp-content/themes/twentytwelve/author.php | 4 +- wp-content/themes/twentytwelve/category.php | 2 +- .../themes/twentytwelve/content-aside.php | 2 +- .../themes/twentytwelve/content-link.php | 2 +- .../themes/twentytwelve/content-quote.php | 2 +- .../themes/twentytwelve/content-status.php | 2 +- wp-content/themes/twentytwelve/content.php | 4 +- wp-content/themes/twentytwelve/functions.php | 22 +-- wp-content/themes/twentytwelve/image.php | 2 +- wp-content/themes/twentytwelve/index.php | 2 +- wp-content/themes/twentytwelve/search.php | 2 +- wp-content/themes/twentytwelve/tag.php | 2 +- wp-includes/admin-bar.php | 8 +- wp-includes/atomlib.php | 2 +- wp-includes/author-template.php | 6 +- wp-includes/bookmark-template.php | 2 +- wp-includes/capabilities.php | 18 +-- wp-includes/category-template.php | 4 +- wp-includes/class-walker-category.php | 2 +- wp-includes/class-walker-comment.php | 8 +- wp-includes/class-walker-page-dropdown.php | 2 +- wp-includes/class-walker-page.php | 2 +- wp-includes/class-wp-block-type-registry.php | 4 +- wp-includes/class-wp-customize-control.php | 2 +- wp-includes/class-wp-customize-manager.php | 28 ++-- wp-includes/class-wp-customize-nav-menus.php | 44 +++--- wp-includes/class-wp-customize-panel.php | 2 +- wp-includes/class-wp-customize-section.php | 2 +- wp-includes/class-wp-customize-widgets.php | 8 +- wp-includes/class-wp-date-query.php | 6 +- wp-includes/class-wp-editor.php | 6 +- wp-includes/class-wp-http-curl.php | 2 +- wp-includes/class-wp-http-streams.php | 2 +- wp-includes/class-wp-image-editor-imagick.php | 4 +- wp-includes/class-wp-locale.php | 124 ++++++++-------- wp-includes/class-wp-query.php | 3 +- .../class-wp-recovery-mode-email-service.php | 8 +- wp-includes/class-wp-theme.php | 14 +- wp-includes/class-wp-xmlrpc-server.php | 6 +- wp-includes/comment-template.php | 29 ++-- wp-includes/comment.php | 2 +- .../class-wp-customize-date-time-control.php | 6 +- ...lass-wp-customize-header-image-control.php | 6 +- .../class-wp-customize-nav-menu-control.php | 2 +- ...ass-wp-customize-nav-menu-item-control.php | 6 +- ...ass-wp-customize-nav-menu-item-setting.php | 2 +- ...p-customize-nav-menu-locations-control.php | 6 +- .../class-wp-customize-nav-menu-setting.php | 2 +- .../class-wp-customize-nav-menus-panel.php | 2 +- .../class-wp-customize-theme-control.php | 12 +- .../class-wp-customize-themes-panel.php | 2 +- .../class-wp-customize-themes-section.php | 8 +- wp-includes/deprecated.php | 4 +- wp-includes/embed.php | 6 +- wp-includes/error-protection.php | 2 +- wp-includes/feed-atom-comments.php | 10 +- wp-includes/feed-rss2-comments.php | 10 +- wp-includes/feed.php | 4 +- wp-includes/formatting.php | 43 +++--- wp-includes/functions.php | 57 ++++---- wp-includes/functions.wp-scripts.php | 2 +- wp-includes/general-template.php | 57 ++++---- wp-includes/link-template.php | 2 +- wp-includes/load.php | 2 +- wp-includes/media-template.php | 12 +- wp-includes/media.php | 8 +- wp-includes/ms-functions.php | 32 ++--- wp-includes/ms-load.php | 8 +- wp-includes/ms-site.php | 4 +- wp-includes/nav-menu.php | 10 +- wp-includes/option.php | 2 +- wp-includes/pluggable.php | 90 ++++++------ wp-includes/post-template.php | 22 +-- wp-includes/post.php | 34 ++--- wp-includes/query.php | 2 +- wp-includes/rest-api.php | 42 +++--- .../rest-api/class-wp-rest-request.php | 6 +- .../class-wp-rest-attachments-controller.php | 4 +- ...lass-wp-rest-block-renderer-controller.php | 2 +- .../class-wp-rest-comments-controller.php | 10 +- .../endpoints/class-wp-rest-controller.php | 24 ++-- .../class-wp-rest-posts-controller.php | 12 +- .../class-wp-rest-search-controller.php | 2 +- .../class-wp-rest-settings-controller.php | 2 +- .../class-wp-rest-users-controller.php | 4 +- .../fields/class-wp-rest-meta-fields.php | 16 +-- wp-includes/script-loader.php | 101 +++++++------- wp-includes/shortcodes.php | 4 +- wp-includes/taxonomy.php | 6 +- wp-includes/theme-compat/comments.php | 8 +- wp-includes/theme-compat/embed-404.php | 2 +- wp-includes/theme-compat/footer.php | 6 +- wp-includes/theme-compat/header.php | 4 +- wp-includes/theme-compat/sidebar.php | 16 +-- wp-includes/update.php | 12 +- wp-includes/user.php | 24 ++-- wp-includes/version.php | 2 +- wp-includes/widgets.php | 6 +- .../widgets/class-wp-nav-menu-widget.php | 2 +- .../widgets/class-wp-widget-custom-html.php | 8 +- .../widgets/class-wp-widget-media-audio.php | 6 +- .../widgets/class-wp-widget-media-gallery.php | 4 +- .../widgets/class-wp-widget-media-image.php | 6 +- .../widgets/class-wp-widget-media-video.php | 8 +- wp-includes/widgets/class-wp-widget-media.php | 4 +- .../class-wp-widget-recent-comments.php | 2 +- wp-includes/wp-db.php | 28 ++-- wp-links-opml.php | 2 +- wp-load.php | 2 +- wp-login.php | 18 +-- wp-mail.php | 6 +- wp-signup.php | 28 ++-- 361 files changed, 2050 insertions(+), 1861 deletions(-) diff --git a/wp-activate.php b/wp-activate.php index df82ae0b09..7107352d53 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -144,7 +144,7 @@ get_header( 'wp-activate' ); echo '

'; if ( $signup->domain . $signup->path == '' ) { printf( - /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */ + /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ __( 'Your account has been activated. You may now log in to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, @@ -153,7 +153,7 @@ get_header( 'wp-activate' ); ); } else { printf( - /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */ + /* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */ __( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), sprintf( '%1$s', $signup->domain ), $signup->user_login, @@ -188,14 +188,14 @@ get_header( 'wp-activate' ); ?>

View your site or Log in' ), $url, esc_url( $login_url ) ); ?>

Log in or go back to the homepage.' ), network_site_url( 'wp-login.php', 'login' ), network_home_url() ); ?>

diff --git a/wp-admin/about.php b/wp-admin/about.php index 2731a54a1c..f5d86a9892 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -20,7 +20,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

the Site Health features introduced in 5.1, this release adds two new pages to help debug common configuration issues. It also adds space where developers can include debugging information for site maintainers.' ), __( 'https://wordpress.org/news/2019/02/betty/' ) ); 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: URL to Site Health Status screen, 2: URL to Site Health Info screen. */ __( ' Check your site status, and learn how to debug issues.' ), admin_url( 'site-health.php' ), admin_url( 'site-health.php?tab=debug' ) @@ -183,28 +183,28 @@ __( 'Security Releases' ); __( 'Maintenance and Security Release' ); __( 'Maintenance and Security Releases' ); -/* translators: %s: WordPress version number */ +/* translators: %s: WordPress version number. */ __( 'Version %s addressed one security issue.' ); -/* translators: %s: WordPress version number */ +/* translators: %s: WordPress version number. */ __( 'Version %s addressed some security issues.' ); -/* translators: 1: WordPress version number, 2: plural number of bugs. */ +/* translators: 1: WordPress version number, 2: Plural number of bugs. */ _n_noop( 'Version %1$s addressed %2$s bug.', 'Version %1$s addressed %2$s bugs.' ); -/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */ +/* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */ _n_noop( 'Version %1$s addressed a security issue and fixed %2$s bug.', 'Version %1$s addressed a security issue and fixed %2$s bugs.' ); -/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */ +/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */ _n_noop( 'Version %1$s addressed some security issues and fixed %2$s bug.', 'Version %1$s addressed some security issues and fixed %2$s bugs.' ); -/* translators: %s: Documentation URL */ +/* translators: %s: Documentation URL. */ __( 'For more information, see the release notes.' ); diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index bc66618727..631bc67ef3 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -35,20 +35,20 @@ get_admin_page_title(); $title = esc_html( strip_tags( $title ) ); if ( is_network_admin() ) { - /* translators: Network admin screen title. %s: Network name */ + /* translators: Network admin screen title. %s: Network title. */ $admin_title = sprintf( __( 'Network Admin: %s' ), esc_html( get_network()->site_name ) ); } elseif ( is_user_admin() ) { - /* translators: User dashboard screen title. %s: Network name */ + /* translators: User dashboard screen title. %s: Network title. */ $admin_title = sprintf( __( 'User Dashboard: %s' ), esc_html( get_network()->site_name ) ); } else { $admin_title = get_bloginfo( 'name' ); } if ( $admin_title == $title ) { - /* translators: Admin screen title. %s: Admin screen name */ + /* translators: Admin screen title. %s: Admin screen name. */ $admin_title = sprintf( __( '%s — WordPress' ), $title ); } else { - /* translators: Admin screen title. 1: Admin screen name, 2: Network or site name */ + /* translators: Admin screen title. 1: Admin screen name, 2: Network or site name. */ $admin_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $admin_title ); } diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 80aa3a0f05..b434dd0ea2 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -175,7 +175,7 @@ switch ( $action ) { - + comment_post_ID; @@ -192,7 +192,7 @@ switch ( $action ) { $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); printf( - /* translators: %s: comment link */ + /* translators: %s: Comment link. */ ' | ' . __( 'In reply to %s.' ), '' . $name . '' ); @@ -205,9 +205,9 @@ switch ( $action ) { - +

comment_ID}" ); ?>">

diff --git a/wp-admin/credits.php b/wp-admin/credits.php index 4ec9424ce1..8940a78481 100644 --- a/wp-admin/credits.php +++ b/wp-admin/credits.php @@ -21,7 +21,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

' . get_bloginfo( 'name', 'display' ) . '' ); ?> diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 9436efc540..0bd3b7a09d 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -153,14 +153,14 @@ if ( $post_id ) { $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); if ( $comments_count->moderated > 0 ) { $title = sprintf( - /* translators: 1: comments count, 2: post title */ + /* translators: 1: Comments count, 2: Post title. */ __( 'Comments (%1$s) on “%2$s”' ), number_format_i18n( $comments_count->moderated ), $draft_or_post_title ); } else { $title = sprintf( - /* translators: %s: post title */ + /* translators: %s: Post title. */ __( 'Comments on “%s”' ), $draft_or_post_title ); @@ -169,7 +169,7 @@ if ( $post_id ) { $comments_count = wp_count_comments(); if ( $comments_count->moderated > 0 ) { $title = sprintf( - /* translators: %s: comments count */ + /* translators: %s: Comments count. */ __( 'Comments (%s)' ), number_format_i18n( $comments_count->moderated ) ); @@ -226,7 +226,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); %2$s', @@ -244,7 +244,7 @@ if ( $post_id ) { if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { echo ''; printf( - /* translators: %s: search keywords */ + /* translators: %s: Search query. */ __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ); @@ -282,34 +282,34 @@ if ( isset( $_REQUEST['approved'] ) || isset( $_REQUEST['deleted'] ) || isset( $ if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 || $same > 0 ) { if ( $approved > 0 ) { - /* translators: %s: number of comments */ + /* 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 */ + /* translators: %s: Number of comments. */ $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' ' . __( 'Undo' ) . '
'; } if ( $unspammed > 0 ) { - /* translators: %s: number of comments */ + /* 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 */ + /* translators: %s: Number of comments. */ $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' ' . __( 'Undo' ) . '
'; } if ( $untrashed > 0 ) { - /* translators: %s: number of comments */ + /* 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 */ + /* translators: %s: Number of comments. */ $messages[] = sprintf( _n( '%s comment permanently deleted', '%s comments permanently deleted', $deleted ), $deleted ); } diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 9e6ed11e0c..fd09536db2 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -175,12 +175,12 @@ $messages['post'] = array( 2 => __( 'Custom field updated.' ), 3 => __( 'Custom field deleted.' ), 4 => __( 'Post updated.' ), - /* translators: %s: date and time of the revision */ + /* translators: %s: Date and time of the revision. */ 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 6 => __( 'Post published.' ) . $view_post_link_html, 7 => __( 'Post saved.' ), 8 => __( 'Post submitted.' ) . $preview_post_link_html, - /* translators: %s: scheduled date for the post */ + /* translators: %s: Scheduled date for the post. */ 9 => sprintf( __( 'Post scheduled for: %s.' ), '' . $scheduled_date . '' ) . $scheduled_post_link_html, 10 => __( 'Post draft updated.' ) . $preview_post_link_html, ); @@ -190,12 +190,12 @@ $messages['page'] = array( 2 => __( 'Custom field updated.' ), 3 => __( 'Custom field deleted.' ), 4 => __( 'Page updated.' ), - /* translators: %s: date and time of the revision */ + /* translators: %s: Date and time of the revision. */ 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 6 => __( 'Page published.' ) . $view_page_link_html, 7 => __( 'Page saved.' ), 8 => __( 'Page submitted.' ) . $preview_page_link_html, - /* translators: %s: scheduled date for the page */ + /* translators: %s: Scheduled date for the page. */ 9 => sprintf( __( 'Page scheduled for: %s.' ), '' . $scheduled_date . '' ) . $scheduled_page_link_html, 10 => __( 'Page draft updated.' ) . $preview_page_link_html, ); @@ -241,7 +241,7 @@ if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql foreach ( _wp_post_revision_fields( $post ) as $autosave_field => $_autosave_field ) { if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) { $notice = sprintf( - /* translators: %s: URL to view the autosave */ + /* translators: %s: URL to view the autosave. */ __( 'There is an autosave of this post that is more recent than the version below. View the autosave' ), get_edit_post_link( $autosave->ID ) ); @@ -299,7 +299,7 @@ if ( 'post' == $post_type ) { get_current_screen()->set_help_sidebar( '

' . sprintf( - /* translators: %s: URL to Press This bookmarklet */ + /* translators: %s: URL to Press This bookmarklet. */ __( 'You can also create posts with the Press This bookmarklet.' ), 'tools.php' ) . '

' . @@ -370,7 +370,7 @@ if ( 'post' == $post_type ) { if ( current_theme_supports( 'post-thumbnails' ) && post_type_supports( 'post', 'thumbnail' ) ) { $publish_box .= '
  • ' . sprintf( - /* translators: %s: Featured Image */ + /* translators: %s: Featured Image. */ __( '%s — 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 ) ) . '
  • '; @@ -593,7 +593,7 @@ if ( post_type_supports( $post_type, 'editor' ) ) { 0
    ' ); @@ -606,10 +606,10 @@ if ( post_type_supports( $post_type, 'editor' ) ) { echo ''; $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ); if ( $last_user ) { - /* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time */ + /* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time. */ printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) ); } else { - /* translators: 1: Post edited date, 2: Post edited time */ + /* translators: 1: Post edited date, 2: Post edited time. */ printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) ); } echo ''; diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index b7d6a7c6e6..3fe6463551 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -175,7 +175,7 @@ $styles = array( ), ); -/* Translators: Use this to specify the CSS font family for the default font */ +/* translators: Use this to specify the CSS font family for the default font. */ $locale_font_family = esc_html_x( 'Noto Serif', 'CSS Font Family for Editor Font' ); $styles[] = array( 'css' => "body { font-family: '$locale_font_family' }", diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index a64be9cf88..79d215a923 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -109,7 +109,7 @@ $datef = __( 'M j, Y @ H:i' ); ' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '' ); @@ -135,7 +135,7 @@ if ( current_user_can( 'edit_post', $post_id ) ) {
    ' . $post_link . '' ); @@ -152,7 +152,7 @@ if ( $comment->comment_parent ) :
    ' . $name . '' ); diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 8a25b1f1d0..05c3751f72 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -12,13 +12,13 @@ if ( ! defined( 'ABSPATH' ) ) { } if ( ! empty( $link_id ) ) { - /* translators: %s: URL to Links screen */ + /* translators: %s: URL to Links screen. */ $heading = sprintf( __( 'Links / 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 */ + /* translators: %s: URL to Links screen. */ $heading = sprintf( __( 'Links / Add New Link' ), 'link-manager.php' ); $submit_text = __( 'Add Link' ); $form_name = 'addlink'; diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 517bb359af..80ab3ffdd8 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -243,7 +243,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t $help = ''; if ( 'category' == $taxonomy ) { $help = '

    ' . sprintf( - /* translators: %s: URL to Writing Settings screen */ + /* 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 “Uncategorized” until you change it in your writing settings.' ), 'options-writing.php' ) . '

    '; @@ -335,7 +335,7 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { ' . __( 'Search results for “%s”' ) . '', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); } ?> @@ -591,7 +591,7 @@ if ( $can_edit_terms ) {

    ' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '' @@ -602,7 +602,7 @@ if ( $can_edit_terms ) {

    category to tag converter.' ), esc_url( $import_link ) ); @@ -615,7 +615,7 @@ if ( $can_edit_terms ) {

    tag to category converter.' ), esc_url( $import_link ) ); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index c843e92c4c..a8c2265d20 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -314,42 +314,42 @@ $bulk_counts = array( $bulk_messages = array(); $bulk_messages['post'] = array( - /* translators: %s: number of posts */ + /* 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 */ + /* 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 */ + /* translators: %s: Number of posts. */ 'deleted' => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of posts */ + /* 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 */ + /* 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 */ + /* 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 */ + /* 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 */ + /* translators: %s: Number of pages. */ 'deleted' => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of pages */ + /* 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 */ + /* 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 */ + /* 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.' ) : - /* translators: %s: number of blocks */ + /* 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 */ + /* translators: %s: Number of blocks. */ 'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ), - /* translators: %s: number of blocks */ + /* 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 */ + /* translators: %s: Number of blocks. */ 'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ), ); @@ -382,7 +382,7 @@ if ( current_user_can( $post_type_object->cap->create_posts ) ) { } if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { - /* translators: %s: search keywords */ + /* translators: %s: Search query. */ printf( ' ' . __( 'Search results for “%s”' ) . '', get_search_query() ); } ?> diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php index 9b59d820df..fe8f1868f9 100644 --- a/wp-admin/freedoms.php +++ b/wp-admin/freedoms.php @@ -27,7 +27,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

    - ' . esc_html( $_GET['invalid'] ) . '' ); - ?> + ' . esc_html( $_GET['invalid'] ) . '' ); + ?>

    @@ -128,7 +128,7 @@ if ( empty( $importers ) ) { $action = sprintf( '%s', esc_url( $url ), - /* translators: %s: Importer name */ + /* translators: %s: Importer name. */ esc_attr( sprintf( __( 'Run %s' ), $data[0] ) ), __( 'Run Importer' ) ); @@ -155,13 +155,13 @@ if ( empty( $importers ) ) { esc_url( $url ), esc_attr( $plugin_slug ), esc_attr( $data[0] ), - /* translators: %s: Importer name */ + /* translators: %s: Importer name. */ esc_attr( sprintf( __( 'Install %s now' ), $data[0] ) ), __( 'Install Now' ) ); } else { $action = sprintf( - /* translators: URL to wp-admin/import.php */ + /* translators: URL to Import screen on the main site. */ __( 'This importer is not installed. Please install importers from the main site.' ), get_admin_url( get_current_network_id(), 'import.php' ) ); @@ -177,7 +177,7 @@ if ( empty( $importers ) ) { $action = sprintf( '%3$s', esc_url( $url ), - /* translators: %s: Importer name */ + /* translators: %s: Importer name. */ esc_attr( sprintf( __( 'Run %s' ), $data[0] ) ), __( 'Run Importer' ) ); @@ -200,7 +200,7 @@ if ( empty( $importers ) ) { $action .= sprintf( ' | %3$s', esc_url( $url ), - /* translators: %s: Importer name */ + /* translators: %s: Importer name. */ esc_attr( sprintf( __( 'More information about %s' ), $data[0] ) ), __( 'Details' ) ); @@ -224,7 +224,7 @@ if ( empty( $importers ) ) { if ( current_user_can( 'install_plugins' ) ) { echo '

    ' . sprintf( - /* translators: %s: URL to Add Plugins screen */ + /* translators: %s: URL to Add Plugins screen. */ __( 'If the importer you need is not listed, search the plugin directory to see if an importer is available.' ), esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) ) ) . '

    '; diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index c1f5c8f1fc..28db878ef5 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -314,7 +314,7 @@ function wp_ajax_autocomplete_user() { foreach ( $users as $user ) { $return[] = array( - /* translators: 1: user login, 2: user email address */ + /* translators: 1: User login, 2: User email address. */ 'label' => sprintf( _x( '%1$s (%2$s)', 'user autocomplete result' ), $user->user_login, $user->user_email ), 'value' => $user->$field, ); @@ -454,12 +454,12 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -518,7 +518,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'supplemental' => array( 'status' => $comment ? $comment->comment_approved : '', 'postId' => $comment ? $comment->comment_post_ID : '', - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ 'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ), 'total_pages' => ceil( $total / $per_page ), 'total_pages_i18n' => number_format_i18n( ceil( $total / $per_page ) ), @@ -526,7 +526,7 @@ function _wp_ajax_delete_comment_response( $comment_id, $delta = -1 ) { 'time' => $time, 'in_moderation' => $counts->moderated, 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -915,7 +915,7 @@ function wp_ajax_dim_comment() { 'what' => 'comment', 'id' => new WP_Error( 'invalid_comment', - /* translators: %d: comment ID */ + /* translators: %d: Comment ID. */ sprintf( __( 'Comment %d does not exist' ), $id ) ), ) @@ -1304,12 +1304,12 @@ function wp_ajax_replyto_comment( $action ) { $response['supplemental'] = array( 'in_moderation' => $counts->moderated, 'i18n_comments_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment', '%s Comments', $counts->approved ), number_format_i18n( $counts->approved ) ), 'i18n_moderation_text' => sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s Comment in moderation', '%s Comments in moderation', $counts->moderated ), number_format_i18n( $counts->moderated ) ), @@ -1486,7 +1486,7 @@ function wp_ajax_add_meta() { $post_data['post_type'] = $post->post_type; $post_data['post_status'] = 'draft'; $now = time(); - /* translators: 1: Post creation date, 2: Post creation time */ + /* translators: 1: Post creation date, 2: Post creation time. */ $post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), gmdate( __( 'F j, Y' ), $now ), gmdate( __( 'g:i a' ), $now ) ); $pid = edit_post( $post_data ); @@ -1612,7 +1612,7 @@ function wp_ajax_add_user( $action ) { 'data' => $wp_list_table->single_row( $user_object, '', $role ), 'supplemental' => array( 'show-link' => sprintf( - /* translators: %s: the new user */ + /* translators: %s: The new user. */ __( 'User %s added' ), '' . $user_object->user_login . '' ), @@ -1917,11 +1917,11 @@ function wp_ajax_inline_save() { $last_user = get_userdata( $last ); $last_user_name = $last_user ? $last_user->display_name : __( 'Someone' ); - /* translators: %s: user's display name */ + /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this post.' ); if ( $_POST['post_type'] == 'page' ) { - /* translators: %s: user's display name */ + /* translators: %s: User's display name. */ $msg_template = __( 'Saving is disabled: %s is currently editing this page.' ); } @@ -2111,7 +2111,7 @@ function wp_ajax_find_posts() { if ( '0000-00-00 00:00:00' == $post->post_date ) { $time = ''; } else { - /* translators: date format in table columns, see https://secure.php.net/date */ + /* translators: Date format in table columns, see https://secure.php.net/date */ $time = mysql2date( __( 'Y/m/d' ), $post->post_date ); } @@ -2630,10 +2630,10 @@ function wp_ajax_wp_fullscreen_save_post() { $last_id = get_post_meta( $post_id, '_edit_last', true ); if ( $last_id ) { $last_user = get_userdata( $last_id ); - /* translators: 1: user's display name, 2: date of last edit, 3: time of last edit. */ + /* translators: 1: User's display name, 2: Date of last edit, 3: Time of last edit. */ $last_edited = sprintf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), $last_date, $last_time ); } else { - /* translators: 1: date of last edit, 2: time of last edit. */ + /* translators: 1: Date of last edit, 2: Time of last edit. */ $last_edited = sprintf( __( 'Last edited on %1$s at %2$s' ), $last_date, $last_time ); } @@ -3484,7 +3484,7 @@ function wp_ajax_parse_embed() { wp_send_json_error( array( 'type' => 'not-embeddable', - /* translators: %s: URL that could not be embedded */ + /* translators: %s: URL that could not be embedded. */ 'message' => sprintf( __( '%s failed to embed.' ), '' . esc_html( $url ) . '' ), ) ); @@ -4228,7 +4228,7 @@ function wp_ajax_update_plugin() { $status['pluginName'] = $plugin_data['Name']; if ( $plugin_data['Version'] ) { - /* translators: %s: Plugin version */ + /* translators: %s: Plugin version. */ $status['oldVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } @@ -4271,7 +4271,7 @@ function wp_ajax_update_plugin() { $plugin_data = reset( $plugin_data ); if ( $plugin_data['Version'] ) { - /* translators: %s: Plugin version */ + /* translators: %s: Plugin version. */ $status['newVersion'] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } wp_send_json_success( $status ); @@ -4591,13 +4591,13 @@ function wp_ajax_wp_privacy_export_personal_data() { if ( ! is_array( $exporter ) ) { wp_send_json_error( - /* translators: %s: exporter array index */ + /* translators: %s: Exporter array index. */ sprintf( __( 'Expected an array describing the exporter at index %s.' ), $exporter_key ) ); } if ( ! array_key_exists( 'exporter_friendly_name', $exporter ) ) { wp_send_json_error( - /* translators: %s: exporter array index */ + /* translators: %s: Exporter array index. */ sprintf( __( 'Exporter array at index %s does not include a friendly name.' ), $exporter_key ) ); } @@ -4606,13 +4606,13 @@ function wp_ajax_wp_privacy_export_personal_data() { if ( ! array_key_exists( 'callback', $exporter ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Exporter does not include a callback: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! is_callable( $exporter['callback'] ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Exporter callback is not a valid callback: %s.' ), esc_html( $exporter_friendly_name ) ) ); } @@ -4626,25 +4626,25 @@ function wp_ajax_wp_privacy_export_personal_data() { if ( ! is_array( $response ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected response as an array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! array_key_exists( 'data', $response ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected data in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! is_array( $response['data'] ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected data array in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } if ( ! array_key_exists( 'done', $response ) ) { wp_send_json_error( - /* translators: %s: exporter friendly name */ + /* translators: %s: Exporter friendly name. */ sprintf( __( 'Expected done (boolean) in response array from exporter: %s.' ), esc_html( $exporter_friendly_name ) ) ); } @@ -4773,12 +4773,12 @@ function wp_ajax_wp_privacy_erase_personal_data() { $eraser = $erasers[ $eraser_key ]; if ( ! is_array( $eraser ) ) { - /* translators: %d: eraser array index */ + /* translators: %d: Eraser array index. */ wp_send_json_error( sprintf( __( 'Expected an array describing the eraser at index %d.' ), $eraser_index ) ); } if ( ! array_key_exists( 'eraser_friendly_name', $eraser ) ) { - /* translators: %d: eraser array index */ + /* translators: %d: Eraser array index. */ wp_send_json_error( sprintf( __( 'Eraser array at index %d does not include a friendly name.' ), $eraser_index ) ); } @@ -4787,7 +4787,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! array_key_exists( 'callback', $eraser ) ) { wp_send_json_error( sprintf( - /* translators: %s: eraser friendly name */ + /* translators: %s: Eraser friendly name. */ __( 'Eraser does not include a callback: %s.' ), esc_html( $eraser_friendly_name ) ) @@ -4797,7 +4797,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! is_callable( $eraser['callback'] ) ) { wp_send_json_error( sprintf( - /* translators: %s: eraser friendly name */ + /* translators: %s: Eraser friendly name. */ __( 'Eraser callback is not valid: %s.' ), esc_html( $eraser_friendly_name ) ) @@ -4814,7 +4814,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! is_array( $response ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Did not receive array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index @@ -4825,7 +4825,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! array_key_exists( 'items_removed', $response ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected items_removed key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index @@ -4836,7 +4836,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! array_key_exists( 'items_retained', $response ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected items_retained key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index @@ -4847,7 +4847,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! array_key_exists( 'messages', $response ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected messages key in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index @@ -4858,7 +4858,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! is_array( $response['messages'] ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected messages key to reference an array in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index @@ -4869,7 +4869,7 @@ function wp_ajax_wp_privacy_erase_personal_data() { if ( ! array_key_exists( 'done', $response ) ) { wp_send_json_error( sprintf( - /* translators: 1: eraser friendly name, 2: eraser array index */ + /* translators: 1: Eraser friendly name, 2: Eraser array index. */ __( 'Expected done flag in response array from %1$s eraser (index %2$d).' ), esc_html( $eraser_friendly_name ), $eraser_index diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php index 73102b96a1..6168a63529 100644 --- a/wp-admin/includes/bookmark.php +++ b/wp-admin/includes/bookmark.php @@ -319,7 +319,7 @@ function wp_link_manager_disabled_message() { if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); - /* translators: %s: URL to install the Link Manager plugin */ + /* translators: %s: URL to install the Link Manager plugin. */ wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) ); } diff --git a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php index 62b877918a..308cacf553 100644 --- a/wp-admin/includes/class-bulk-plugin-upgrader-skin.php +++ b/wp-admin/includes/class-bulk-plugin-upgrader-skin.php @@ -20,7 +20,7 @@ class Bulk_Plugin_Upgrader_Skin extends Bulk_Upgrader_Skin { public function add_strings() { parent::add_strings(); - /* translators: 1: plugin name, 2: number of the plugin, 3: total number of plugins being updated */ + /* translators: 1: Plugin name, 2: Number of the plugin, 3: Total number of plugins being updated. */ $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Plugin %1$s (%2$d/%3$d)' ); } diff --git a/wp-admin/includes/class-bulk-theme-upgrader-skin.php b/wp-admin/includes/class-bulk-theme-upgrader-skin.php index 687a921529..d3f0c914ea 100644 --- a/wp-admin/includes/class-bulk-theme-upgrader-skin.php +++ b/wp-admin/includes/class-bulk-theme-upgrader-skin.php @@ -20,7 +20,7 @@ class Bulk_Theme_Upgrader_Skin extends Bulk_Upgrader_Skin { public function add_strings() { parent::add_strings(); - /* translators: 1: theme name, 2: number of the theme, 3: total number of themes being updated */ + /* translators: 1: Theme name, 2: Number of the theme, 3: Total number of themes being updated. */ $this->upgrader->strings['skin_before_update_header'] = __( 'Updating Theme %1$s (%2$d/%3$d)' ); } diff --git a/wp-admin/includes/class-bulk-upgrader-skin.php b/wp-admin/includes/class-bulk-upgrader-skin.php index c1454e62f1..dcfa30b136 100644 --- a/wp-admin/includes/class-bulk-upgrader-skin.php +++ b/wp-admin/includes/class-bulk-upgrader-skin.php @@ -39,11 +39,11 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { */ public function add_strings() { $this->upgrader->strings['skin_upgrade_start'] = __( 'The update process is starting. This process may take a while on some hosts, so please be patient.' ); - /* translators: 1: Title of an update, 2: Error message */ + /* translators: 1: Title of an update, 2: Error message. */ $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while updating %1$s: %2$s' ); - /* translators: %s: Title of an update */ + /* translators: %s: Title of an update. */ $this->upgrader->strings['skin_update_failed'] = __( 'The update of %s failed.' ); - /* translators: %s: Title of an update */ + /* translators: %s: Title of an update. */ $this->upgrader->strings['skin_update_successful'] = __( '%s updated successfully.' ); $this->upgrader->strings['skin_upgrade_end'] = __( 'All updates have been completed.' ); } diff --git a/wp-admin/includes/class-core-upgrader.php b/wp-admin/includes/class-core-upgrader.php index 0985cf2e81..ad94983074 100644 --- a/wp-admin/includes/class-core-upgrader.php +++ b/wp-admin/includes/class-core-upgrader.php @@ -29,7 +29,7 @@ class Core_Upgrader extends WP_Upgrader { $this->strings['up_to_date'] = __( 'WordPress is at the latest version.' ); $this->strings['locked'] = __( 'Another update is currently in progress.' ); $this->strings['no_package'] = __( 'Update package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['copy_failed'] = __( 'Could not copy files.' ); diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php index 16ba6c0f33..2a8e1d9f2b 100644 --- a/wp-admin/includes/class-custom-background.php +++ b/wp-admin/includes/class-custom-background.php @@ -230,7 +230,7 @@ class Custom_Background {

    Customizer.' ), admin_url( 'customize.php?autofocus[control]=background_image' ) ); @@ -243,7 +243,7 @@ class Custom_Background {

    Visit your site to see how it looks.' ), home_url( '/' ) ); ?>

    diff --git a/wp-admin/includes/class-custom-image-header.php b/wp-admin/includes/class-custom-image-header.php index faf9efc13c..12d307d6d4 100644 --- a/wp-admin/includes/class-custom-image-header.php +++ b/wp-admin/includes/class-custom-image-header.php @@ -119,7 +119,7 @@ class Custom_Image_Header { 'title' => __( 'Header Text' ), 'content' => '

    ' . sprintf( - /* translators: %s: URL to General Settings screen */ + /* translators: %s: URL to General Settings screen. */ __( 'For most themes, the header text is your Site Title and Tagline, as defined in the General Settings section.' ), admin_url( 'options-general.php' ) ) . @@ -479,7 +479,7 @@ class Custom_Image_Header {

    Customizer.' ), admin_url( 'customize.php?autofocus[control]=header_image' ) ); @@ -492,7 +492,7 @@ class Custom_Image_Header {

    Visit your site to see how it looks.' ), home_url( '/' ) ); ?>

    @@ -551,15 +551,15 @@ class Custom_Image_Header {


    %1$d × %2$d pixels will be used as-is.' ) . '
    ', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) { printf( - /* translators: %s: size in pixels */ + /* translators: %s: Size in pixels. */ __( 'Images should be at least %s wide.' ) . ' ', sprintf( - /* translators: %d: custom header width */ + /* translators: %d: Custom header width. */ '' . __( '%d pixels' ) . '', get_theme_support( 'custom-header', 'width' ) ) @@ -568,10 +568,10 @@ class Custom_Image_Header { } elseif ( current_theme_supports( 'custom-header', 'flex-width' ) ) { if ( ! current_theme_supports( 'custom-header', 'flex-height' ) ) { printf( - /* translators: %s: size in pixels */ + /* translators: %s: Size in pixels. */ __( 'Images should be at least %s tall.' ) . ' ', sprintf( - /* translators: %d: custom header height */ + /* translators: %d: Custom header height. */ '' . __( '%d pixels' ) . '', get_theme_support( 'custom-header', 'height' ) ) @@ -581,10 +581,10 @@ class Custom_Image_Header { if ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) { if ( current_theme_supports( 'custom-header', 'width' ) ) { printf( - /* translators: %s: size in pixels */ + /* translators: %s: Size in pixels. */ __( 'Suggested width is %s.' ) . ' ', sprintf( - /* translators: %d: custom header width */ + /* translators: %d: Custom header width. */ '' . __( '%d pixels' ) . '', get_theme_support( 'custom-header', 'width' ) ) @@ -592,10 +592,10 @@ class Custom_Image_Header { } if ( current_theme_supports( 'custom-header', 'height' ) ) { printf( - /* translators: %s: size in pixels */ + /* translators: %s: Size in pixels. */ __( 'Suggested height is %s.' ) . ' ', sprintf( - /* translators: %d: custom header height */ + /* translators: %d: Custom header height. */ '' . __( '%d pixels' ) . '', get_theme_support( 'custom-header', 'height' ) ) @@ -734,7 +734,7 @@ class Custom_Image_Header { echo ''; if ( $default_color ) { - /* translators: %s: Default text color */ + /* translators: %s: Default text color. */ echo ' ' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . ''; } ?> diff --git a/wp-admin/includes/class-language-pack-upgrader-skin.php b/wp-admin/includes/class-language-pack-upgrader-skin.php index 19ef44393e..cbbc834808 100644 --- a/wp-admin/includes/class-language-pack-upgrader-skin.php +++ b/wp-admin/includes/class-language-pack-upgrader-skin.php @@ -47,7 +47,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { echo '

    '; - /* translators: 1: project name (plugin, theme, or WordPress), 2: language */ + /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ printf( '

    ' . __( 'Updating translations for %1$s (%2$s)…' ) . '

    ', $name, $this->language_update->language ); } diff --git a/wp-admin/includes/class-language-pack-upgrader.php b/wp-admin/includes/class-language-pack-upgrader.php index 9bb98a94bc..72a86bb32f 100644 --- a/wp-admin/includes/class-language-pack-upgrader.php +++ b/wp-admin/includes/class-language-pack-upgrader.php @@ -113,7 +113,7 @@ class Language_Pack_Upgrader extends WP_Upgrader { $this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while we update them as well.' ); $this->strings['up_to_date'] = __( 'Your translations are all up to date.' ); $this->strings['no_package'] = __( 'Update package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['process_failed'] = __( 'Translation update failed.' ); diff --git a/wp-admin/includes/class-plugin-installer-skin.php b/wp-admin/includes/class-plugin-installer-skin.php index ee1e7828e7..bfbfe3b533 100644 --- a/wp-admin/includes/class-plugin-installer-skin.php +++ b/wp-admin/includes/class-plugin-installer-skin.php @@ -43,7 +43,7 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin { public function before() { if ( ! empty( $this->api ) ) { $this->upgrader->strings['process_success'] = sprintf( - /* translators: 1: plugin name, 2: plugin version */ + /* translators: 1: Plugin name, 2: Plugin version. */ __( 'Successfully installed the plugin %1$s %2$s.' ), $this->api->name, $this->api->version diff --git a/wp-admin/includes/class-plugin-upgrader.php b/wp-admin/includes/class-plugin-upgrader.php index c80c9c4c97..cd09f04279 100644 --- a/wp-admin/includes/class-plugin-upgrader.php +++ b/wp-admin/includes/class-plugin-upgrader.php @@ -46,7 +46,7 @@ class Plugin_Upgrader extends WP_Upgrader { public function upgrade_strings() { $this->strings['up_to_date'] = __( 'The plugin is at the latest version.' ); $this->strings['no_package'] = __( 'Update package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['remove_old'] = __( 'Removing the old version of the plugin…' ); @@ -63,7 +63,7 @@ class Plugin_Upgrader extends WP_Upgrader { */ public function install_strings() { $this->strings['no_package'] = __( 'Installation package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the package…' ); $this->strings['installing_package'] = __( 'Installing the plugin…' ); diff --git a/wp-admin/includes/class-theme-installer-skin.php b/wp-admin/includes/class-theme-installer-skin.php index 1da2d0fceb..9be44bc614 100644 --- a/wp-admin/includes/class-theme-installer-skin.php +++ b/wp-admin/includes/class-theme-installer-skin.php @@ -92,7 +92,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { '%s', esc_url( $customize_url ), __( 'Live Preview' ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ sprintf( __( 'Live Preview “%s”' ), $name ) ); } @@ -102,7 +102,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin { '%s', esc_url( $activate_link ), __( 'Activate' ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ sprintf( __( 'Activate “%s”' ), $name ) ); diff --git a/wp-admin/includes/class-theme-upgrader-skin.php b/wp-admin/includes/class-theme-upgrader-skin.php index cc4874f29f..31e540bca1 100644 --- a/wp-admin/includes/class-theme-upgrader-skin.php +++ b/wp-admin/includes/class-theme-upgrader-skin.php @@ -72,7 +72,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { '%s', esc_url( $customize_url ), __( 'Customize' ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ sprintf( __( 'Customize “%s”' ), $name ) ); } @@ -83,7 +83,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { '%s', esc_url( $customize_url ), __( 'Live Preview' ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ sprintf( __( 'Live Preview “%s”' ), $name ) ); } @@ -93,7 +93,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin { '%s', esc_url( $activate_link ), __( 'Activate' ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ sprintf( __( 'Activate “%s”' ), $name ) ); } diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php index 7b521063f8..e9cb743e40 100644 --- a/wp-admin/includes/class-theme-upgrader.php +++ b/wp-admin/includes/class-theme-upgrader.php @@ -45,7 +45,7 @@ class Theme_Upgrader extends WP_Upgrader { public function upgrade_strings() { $this->strings['up_to_date'] = __( 'The theme is at the latest version.' ); $this->strings['no_package'] = __( 'Update package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading update from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['remove_old'] = __( 'Removing the old version of the theme…' ); @@ -61,23 +61,23 @@ class Theme_Upgrader extends WP_Upgrader { */ public function install_strings() { $this->strings['no_package'] = __( 'Installation package not available.' ); - /* translators: %s: package URL */ + /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading installation package from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the package…' ); $this->strings['installing_package'] = __( 'Installing the theme…' ); $this->strings['no_files'] = __( 'The theme contains no files.' ); $this->strings['process_failed'] = __( 'Theme installation failed.' ); $this->strings['process_success'] = __( 'Theme installed successfully.' ); - /* translators: 1: theme name, 2: version */ + /* translators: 1: Theme name, 2: Theme version. */ $this->strings['process_success_specific'] = __( 'Successfully installed the theme %1$s %2$s.' ); $this->strings['parent_theme_search'] = __( 'This theme requires a parent theme. Checking if it is installed…' ); - /* translators: 1: theme name, 2: version */ + /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_prepare_install'] = __( 'Preparing to install %1$s %2$s…' ); - /* translators: 1: theme name, 2: version */ + /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_currently_installed'] = __( 'The parent theme, %1$s %2$s, is currently installed.' ); - /* translators: 1: theme name, 2: version */ + /* translators: 1: Theme name, 2: Theme version. */ $this->strings['parent_theme_install_success'] = __( 'Successfully installed the parent theme, %1$s %2$s.' ); - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $this->strings['parent_theme_not_found'] = sprintf( __( 'The parent theme could not be found. You will need to install the parent theme, %s, before you can use this child theme.' ), '%s' ); } diff --git a/wp-admin/includes/class-walker-nav-menu-checklist.php b/wp-admin/includes/class-walker-nav-menu-checklist.php index 994cc040f3..61da6cdc83 100644 --- a/wp-admin/includes/class-walker-nav-menu-checklist.php +++ b/wp-admin/includes/class-walker-nav-menu-checklist.php @@ -95,7 +95,7 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { /** This filter is documented in wp-includes/post-template.php */ $title = apply_filters( 'the_title', $item->post_title, $item->ID ); if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title ) { - /* translators: %s: front page title */ + /* translators: %s: Front page title. */ $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title ); } } diff --git a/wp-admin/includes/class-walker-nav-menu-edit.php b/wp-admin/includes/class-walker-nav-menu-edit.php index ad37de2629..fdb247f065 100644 --- a/wp-admin/includes/class-walker-nav-menu-edit.php +++ b/wp-admin/includes/class-walker-nav-menu-edit.php @@ -99,11 +99,11 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { if ( ! empty( $item->_invalid ) ) { $classes[] = 'menu-item-invalid'; - /* translators: %s: title of an invalid menu item */ + /* translators: %s: Title of an invalid menu item. */ $title = sprintf( __( '%s (Invalid)' ), $item->title ); } elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) { $classes[] = 'pending'; - /* translators: %s: title of a menu item in draft status */ + /* translators: %s: Title of a menu item in draft status. */ $title = sprintf( __( '%s (Pending)' ), $item->title ); } @@ -240,7 +240,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { type && false !== $original_title ) : ?> diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index b6213cca2a..fe0142dc7a 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -315,30 +315,30 @@ class WP_Automatic_Updater { $upgrader_item = $item; switch ( $type ) { case 'core': - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $item_name = sprintf( __( 'WordPress %s' ), $item->version ); break; case 'theme': $upgrader_item = $item->theme; $theme = wp_get_theme( $upgrader_item ); $item_name = $theme->Get( 'Name' ); - /* translators: %s: Theme name */ + /* translators: %s: Theme name. */ $skin->feedback( __( 'Updating theme: %s' ), $item_name ); break; case 'plugin': $upgrader_item = $item->plugin; $plugin_data = get_plugin_data( $context . '/' . $upgrader_item ); $item_name = $plugin_data['Name']; - /* translators: %s: Plugin name */ + /* translators: %s: Plugin name. */ $skin->feedback( __( 'Updating plugin: %s' ), $item_name ); break; case 'translation': $language_item_name = $upgrader->get_name_for_update( $item ); - /* translators: %s: Project name (plugin, theme, or WordPress) */ + /* translators: %s: Project name (plugin, theme, or WordPress). */ $item_name = sprintf( __( 'Translations for %s' ), $language_item_name ); - /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language */ + /* translators: 1: Project name (plugin, theme, or WordPress), 2: Language. */ $skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) ); break; } @@ -677,7 +677,7 @@ class WP_Automatic_Updater { switch ( $type ) { case 'success': $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current @@ -689,12 +689,12 @@ class WP_Automatic_Updater { // Can only reference the About screen if their update was successful. list( $about_version ) = explode( '-', $core_update->current, 2 ); - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body .= sprintf( __( 'For more on version %s, see the About WordPress screen:' ), $about_version ); $body .= "\n" . admin_url( 'about.php' ); if ( $newer_version_available ) { - /* translators: %s: WordPress latest version */ + /* translators: %s: WordPress latest version. */ $body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' '; $body .= __( 'Updating is easy and only takes a few moments:' ); $body .= "\n" . network_admin_url( 'update-core.php' ); @@ -705,7 +705,7 @@ class WP_Automatic_Updater { case 'fail': case 'manual': $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current @@ -726,14 +726,14 @@ class WP_Automatic_Updater { case 'critical': if ( $newer_version_available ) { $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress version */ + /* translators: 1: Home URL, 2: WordPress version. */ __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current ); } else { $body .= sprintf( - /* translators: 1: Home URL, 2: WordPress latest version */ + /* translators: 1: Home URL, 2: WordPress latest version. */ __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current @@ -751,7 +751,7 @@ class WP_Automatic_Updater { if ( $critical_support ) { // Support offer if available. $body .= "\n\n" . sprintf( - /* translators: %s: Support email address */ + /* translators: %s: Support email address. */ __( 'The WordPress team is willing to help you. Forward this email to %s and the team will work with you to make sure your site is working.' ), $core_update->support_email ); @@ -780,7 +780,7 @@ class WP_Automatic_Updater { if ( 'critical' == $type && is_wp_error( $result ) ) { $body .= "\n***\n\n"; - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body .= sprintf( __( 'Your site was running version %s.' ), get_bloginfo( 'version' ) ); $body .= ' ' . __( 'We have some data that describes the error your site encountered.' ); $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' ); @@ -798,7 +798,7 @@ class WP_Automatic_Updater { continue; } $error_code = $error->get_error_code(); - /* translators: %s: Error code */ + /* translators: %s: Error code. */ $body .= "\n\n" . sprintf( __( 'Error code: %s' ), $error_code ); if ( 'rollback_was_required' == $error_code ) { continue; @@ -857,17 +857,17 @@ class WP_Automatic_Updater { $body = array(); $failures = 0; - /* translators: %s: Network home URL */ + /* translators: %s: Network home URL. */ $body[] = sprintf( __( 'WordPress site: %s' ), network_home_url( '/' ) ); // Core if ( isset( $this->update_results['core'] ) ) { $result = $this->update_results['core'][0]; if ( $result->result && ! is_wp_error( $result->result ) ) { - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'SUCCESS: WordPress was successfully updated to %s' ), $result->name ); } else { - /* translators: %s: WordPress version */ + /* translators: %s: WordPress version. */ $body[] = sprintf( __( 'FAILED: WordPress failed to update to %s' ), $result->name ); $failures++; } @@ -889,7 +889,7 @@ class WP_Automatic_Updater { $body[] = $messages[ $type ]; foreach ( wp_list_pluck( $success_items, 'name' ) as $name ) { - /* translators: %s: name of plugin / theme / translation */ + /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'SUCCESS: %s' ), $name ); } } @@ -904,7 +904,7 @@ class WP_Automatic_Updater { $body[] = $messages[ $type ]; foreach ( $this->update_results[ $type ] as $item ) { if ( ! $item->result || is_wp_error( $item->result ) ) { - /* translators: %s: name of plugin / theme / translation */ + /* translators: %s: Name of plugin / theme / translation. */ $body[] = ' * ' . sprintf( __( 'FAILED: %s' ), $item->name ); $failures++; } @@ -931,10 +931,10 @@ Thanks! -- The WordPress Team" ); $body[] = ''; - /* translators: Background update failed notification email subject. %s: Site title */ + /* translators: Background update failed notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Failed' ), $site_title ); } else { - /* translators: Background update finished notification email subject. %s: Site title */ + /* translators: Background update finished notification email subject. %s: Site title. */ $subject = sprintf( __( '[%s] Background Update Finished' ), $site_title ); } diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index d6a23ae523..1da3edd72f 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -217,42 +217,42 @@ class WP_Comments_List_Table extends WP_List_Table { $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments(); $stati = array( - /* translators: %s: all comments count */ + /* translators: %s: Number of comments. */ 'all' => _nx_noop( 'All (%s)', 'All (%s)', 'comments' ), // singular not used - /* translators: %s: current user's comments count */ + /* translators: %s: Number of comments. */ 'mine' => _nx_noop( 'Mine (%s)', 'Mine (%s)', 'comments' ), - /* translators: %s: pending comments count */ + /* translators: %s: Number of comments. */ 'moderated' => _nx_noop( 'Pending (%s)', 'Pending (%s)', 'comments' ), - /* translators: %s: approved comments count */ + /* translators: %s: Number of comments. */ 'approved' => _nx_noop( 'Approved (%s)', 'Approved (%s)', 'comments' ), - /* translators: %s: spam comments count */ + /* translators: %s: Number of comments. */ 'spam' => _nx_noop( 'Spam (%s)', 'Spam (%s)', 'comments' ), - /* translators: %s: trashed comments count */ + /* translators: %s: Number of comments. */ 'trash' => _nx_noop( 'Trash (%s)', 'Trash (%s)', @@ -455,7 +455,7 @@ class WP_Comments_List_Table extends WP_List_Table { $columns['comment'] = _x( 'Comment', 'column name' ); if ( ! $post_id ) { - /* translators: column name or table row header */ + /* translators: Column name or table row header. */ $columns['response'] = __( 'In Response To' ); } @@ -618,39 +618,116 @@ class WP_Comments_List_Table extends WP_List_Table { // Not looking at all comments. if ( $comment_status && 'all' != $comment_status ) { if ( 'approved' === $the_comment_status ) { - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['unapprove'] = sprintf( + '%s', + $unapprove_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=unapproved", + esc_attr__( 'Unapprove this comment' ), + __( 'Unapprove' ) + ); } elseif ( 'unapproved' === $the_comment_status ) { - $actions['approve'] = "" . __( 'Approve' ) . ''; + $actions['approve'] = sprintf( + '%s', + $approve_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:e7e7d3:action=dim-comment&new=approved", + esc_attr__( 'Approve this comment' ), + __( 'Approve' ) + ); } } else { - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + $actions['approve'] = sprintf( + '%s', + $approve_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", + esc_attr__( 'Approve this comment' ), + __( 'Approve' ) + ); + + $actions['unapprove'] = sprintf( + '%s', + $unapprove_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", + esc_attr__( 'Unapprove this comment' ), + __( 'Unapprove' ) + ); } if ( 'spam' !== $the_comment_status ) { - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; + $actions['spam'] = sprinf( + '%s', + $spam_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", + esc_attr__( 'Mark this comment as spam' ), + /* translators: "Mark as spam" link. */ + _x( 'Spam', 'verb' ) + ); } elseif ( 'spam' === $the_comment_status ) { - $actions['unspam'] = "" . _x( 'Not Spam', 'comment' ) . ''; + $actions['unspam'] = sprintf( + '%s', + $unspam_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:unspam=1", + esc_attr__( 'Restore this comment from the spam' ), + _x( 'Not Spam', 'comment' ) + ); } if ( 'trash' === $the_comment_status ) { - $actions['untrash'] = "" . __( 'Restore' ) . ''; + $actions['untrash'] = sprintf( + '%s', + $untrash_url, + "delete:the-comment-list:comment-{$comment->comment_ID}:66cc66:untrash=1", + esc_attr__( 'Restore this comment from the Trash' ), + __( 'Restore' ) + ); } if ( 'spam' === $the_comment_status || 'trash' === $the_comment_status || ! EMPTY_TRASH_DAYS ) { - $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; + $actions['delete'] = sprintf( + '%s', + $delete_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::delete=1", + esc_attr__( 'Delete this comment permanently' ), + __( 'Delete Permanently' ) + ); } else { - $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; + $actions['trash'] = sprintf( + '%s', + $trash_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", + esc_attr__( 'Move this comment to the Trash' ), + _x( 'Trash', 'verb' ) + ); } if ( 'spam' !== $the_comment_status && 'trash' !== $the_comment_status ) { - $actions['edit'] = "" . __( 'Edit' ) . ''; + $actions['edit'] = sprintf( + '%s', + "comment.php?action=editcomment&c={$comment->comment_ID}", + esc_attr__( 'Edit this comment' ), + __( 'Edit' ) + ); $format = ''; - $actions['quickedit'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'edit', 'vim-q comment-inline', esc_attr__( 'Quick edit this comment inline' ), __( 'Quick Edit' ) ); + $actions['quickedit'] = sprintf( + $format, + $comment->comment_ID, + $comment->comment_post_ID, + 'edit', + 'vim-q comment-inline', + esc_attr__( 'Quick edit this comment inline' ), + __( 'Quick Edit' ) + ); - $actions['reply'] = sprintf( $format, $comment->comment_ID, $comment->comment_post_ID, 'replyto', 'vim-r comment-inline', esc_attr__( 'Reply to this comment' ), __( 'Reply' ) ); + $actions['reply'] = sprintf( + $format, + $comment->comment_ID, + $comment->comment_post_ID, + 'replyto', + 'vim-r comment-inline', + esc_attr__( 'Reply to this comment' ), + __( 'Reply' ) + ); } /** This filter is documented in wp-admin/includes/dashboard.php */ @@ -708,7 +785,7 @@ class WP_Comments_List_Table extends WP_List_Table { $parent_link = esc_url( get_comment_link( $parent ) ); $name = get_comment_author( $parent ); printf( - /* translators: %s: comment link */ + /* translators: %s: Comment link. */ __( 'In reply to %s.' ), '' . $name . '' ); @@ -786,9 +863,9 @@ class WP_Comments_List_Table extends WP_List_Table { */ public function column_date( $comment ) { $submitted = sprintf( - /* translators: 1: comment date, 2: comment time */ + /* translators: 1: Comment date, 2: Comment time. */ __( '%1$s at %2$s' ), - /* translators: comment date format. See https://secure.php.net/date */ + /* translators: Comment date format. See https://secure.php.net/date */ get_comment_date( __( 'Y/m/d' ), $comment ), get_comment_date( __( 'g:i a' ), $comment ) ); diff --git a/wp-admin/includes/class-wp-community-events.php b/wp-admin/includes/class-wp-community-events.php index ac77cb7482..2fa955254f 100644 --- a/wp-admin/includes/class-wp-community-events.php +++ b/wp-admin/includes/class-wp-community-events.php @@ -113,7 +113,7 @@ class WP_Community_Events { } elseif ( 200 !== $response_code ) { $response_error = new WP_Error( 'api-error', - /* translators: %d: numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ + /* translators: %d: Numeric HTTP status code, e.g. 400, 403, 500, 504, etc. */ sprintf( __( 'Invalid API response code (%d)' ), $response_code ) ); } elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) { @@ -375,7 +375,7 @@ class WP_Community_Events { * so that users can tell at a glance if the event is on a day they * are available, without having to open the link. */ - /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date. */ + /* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://secure.php.net/date */ $response_body['events'][ $key ]['formatted_date'] = date_i18n( __( 'l, M j, Y' ), $timestamp ); $response_body['events'][ $key ]['formatted_time'] = date_i18n( get_option( 'time_format' ), $timestamp ); } diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 2f6a788b2f..0039759ec9 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -45,7 +45,7 @@ class WP_Debug_Data { foreach ( $core_updates as $core => $update ) { if ( 'upgrade' === $update->response ) { - // translators: %s: Latest WordPress version number. + /* translators: %s: Latest WordPress version number. */ $core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version ); } else { $core_update_needed = ''; @@ -124,7 +124,7 @@ class WP_Debug_Data { 'label' => __( 'Drop-ins' ), 'show_count' => true, 'description' => sprintf( - /* translators: %s: wp-content directory name */ + /* translators: %s: wp-content directory name. */ __( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ), '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '' ), @@ -405,7 +405,7 @@ class WP_Debug_Data { $info['wp-core']['fields']['dotorg_communication'] = array( 'label' => __( 'Communication with WordPress.org' ), 'value' => sprintf( - // translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. + /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */ __( 'Unable to reach WordPress.org at %1$s: %2$s' ), gethostbyname( 'wordpress.org' ), $wp_dotorg->get_error_message() @@ -798,18 +798,18 @@ class WP_Debug_Data { $plugin_version_string_debug = 'author: (undefined), version: (undefined)'; if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { - // translators: 1: Plugin version number. 2: Plugin author name. + /* translators: 1: Plugin version number. 2: Plugin author name. */ $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); } else { if ( ! empty( $plugin_author ) ) { - // translators: %s: Plugin author name. + /* translators: %s: Plugin author name. */ $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); } if ( ! empty( $plugin_version ) ) { - // translators: %s: Plugin version number. + /* translators: %s: Plugin version number. */ $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); } @@ -836,25 +836,25 @@ class WP_Debug_Data { $plugin_version_string_debug = 'author: (undefined), version: (undefined)'; if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { - // translators: 1: Plugin version number. 2: Plugin author name. + /* translators: 1: Plugin version number. 2: Plugin author name. */ $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); } else { if ( ! empty( $plugin_author ) ) { - // translators: %s: Plugin author name. + /* translators: %s: Plugin author name. */ $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); } if ( ! empty( $plugin_version ) ) { - // translators: %s: Plugin version number. + /* translators: %s: Plugin version number. */ $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); } } if ( array_key_exists( $plugin_path, $plugin_updates ) ) { - // translators: %s: Latest plugin version number. + /* translators: %s: Latest plugin version number. */ $plugin_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version ); $plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version ); } @@ -886,7 +886,7 @@ class WP_Debug_Data { if ( array_key_exists( $active_theme->stylesheet, $theme_updates ) ) { $theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version']; - // translators: %s: Latest theme version number. + /* translators: %s: Latest theme version number. */ $active_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version ); $active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version ); } @@ -895,7 +895,7 @@ class WP_Debug_Data { if ( $active_theme->parent_theme ) { $active_theme_parent_theme = sprintf( - // translators: 1: Theme name. 2: Theme slug. + /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), $active_theme->parent_theme, $active_theme->template @@ -915,7 +915,7 @@ class WP_Debug_Data { 'label' => __( 'Name' ), // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 'value' => sprintf( - // translators: 1: Theme name. 2: Theme slug. + /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $active_theme->Name, @@ -962,7 +962,7 @@ class WP_Debug_Data { if ( array_key_exists( $parent_theme->stylesheet, $theme_updates ) ) { $parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version']; - // translators: %s: Latest theme version number. + /* translators: %s: Latest theme version number. */ $parent_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version ); $parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version ); } @@ -974,7 +974,7 @@ class WP_Debug_Data { 'label' => __( 'Name' ), // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 'value' => sprintf( - // translators: 1: Theme name. 2: Theme slug. + /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $parent_theme->Name, @@ -1029,25 +1029,25 @@ class WP_Debug_Data { $theme_version_string_debug = 'undefined'; if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) { - // translators: 1: Theme version number. 2: Theme author name. + /* translators: 1: Theme version number. 2: Theme author name. */ $theme_version_string = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author ); $theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author ); } else { if ( ! empty( $theme_author ) ) { - // translators: %s: Theme author name. + /* translators: %s: Theme author name. */ $theme_version_string = sprintf( __( 'By %s' ), $theme_author ); $theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author ); } if ( ! empty( $theme_version ) ) { - // translators: %s: Theme version number. + /* translators: %s: Theme version number. */ $theme_version_string = sprintf( __( 'Version %s' ), $theme_version ); $theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version ); } } if ( array_key_exists( $theme_slug, $theme_updates ) ) { - // translators: %s: Latest theme version number. + /* translators: %s: Latest theme version number. */ $theme_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] ); $theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] ); } @@ -1055,7 +1055,7 @@ class WP_Debug_Data { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->Name ) ] = array( 'label' => sprintf( - // translators: 1: Theme name. 2: Theme slug. + /* translators: 1: Theme name. 2: Theme slug. */ __( '%1$s (%2$s)' ), // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase $theme->Name, diff --git a/wp-admin/includes/class-wp-filesystem-base.php b/wp-admin/includes/class-wp-filesystem-base.php index 2c616322e0..abefdd0a5b 100644 --- a/wp-admin/includes/class-wp-filesystem-base.php +++ b/wp-admin/includes/class-wp-filesystem-base.php @@ -251,7 +251,7 @@ class WP_Filesystem_Base { $folder = untrailingslashit( $folder ); if ( $this->verbose ) { - /* translators: 1: folder to locate, 2: folder to start searching from */ + /* translators: 1: Folder to locate, 2: Folder to start searching from. */ printf( "\n" . __( 'Looking for %1$s in %2$s' ) . "
    \n", $folder, $base ); } @@ -279,7 +279,7 @@ class WP_Filesystem_Base { // Let's try that folder: $newdir = trailingslashit( path_join( $base, $key ) ); if ( $this->verbose ) { - /* translators: %s: directory name */ + /* translators: %s: Directory name. */ printf( "\n" . __( 'Changing to %s' ) . "
    \n", $newdir ); } @@ -296,7 +296,7 @@ class WP_Filesystem_Base { // All above procedures will fail quickly if this is the right branch to take. if ( isset( $files[ $last_path ] ) ) { if ( $this->verbose ) { - /* translators: %s: directory name */ + /* translators: %s: Directory name. */ printf( "\n" . __( 'Found %s' ) . "
    \n", $base . $last_path ); } return trailingslashit( $base . $last_path ); diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index 86a1c3d03e..ac98a9808a 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -105,7 +105,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { $this->errors->add( 'auth', sprintf( - /* translators: %s: username */ + /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index c37b36cab7..1e8b159a3c 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -106,7 +106,7 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { $this->errors->add( 'auth', sprintf( - /* translators: %s: username */ + /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php index d93d709359..cea45f1273 100644 --- a/wp-admin/includes/class-wp-filesystem-ssh2.php +++ b/wp-admin/includes/class-wp-filesystem-ssh2.php @@ -151,7 +151,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { $this->errors->add( 'auth', sprintf( - /* translators: %s: username */ + /* translators: %s: Username. */ __( 'Username/Password incorrect for %s' ), $this->options['username'] ) @@ -163,7 +163,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { $this->errors->add( 'auth', sprintf( - /* translators: %s: username */ + /* translators: %s: Username. */ __( 'Public and Private keys incorrect for %s' ), $this->options['username'] ) @@ -226,7 +226,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { $this->errors->add( 'command', sprintf( - /* translators: %s: command */ + /* translators: %s: Command. */ __( 'Unable to perform command: %s' ), $command ) diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php index 1e36038ef9..83869e0ec4 100644 --- a/wp-admin/includes/class-wp-links-list-table.php +++ b/wp-admin/includes/class-wp-links-list-table.php @@ -171,7 +171,7 @@ class WP_Links_List_Table extends WP_List_Table { ?> @@ -191,7 +191,7 @@ class WP_Links_List_Table extends WP_List_Table { printf( '%s', $edit_link, - /* translators: %s: link name */ + /* translators: %s: Link name. */ esc_attr( sprintf( __( 'Edit “%s”' ), $link->link_name ) ), $link->link_name ); @@ -328,7 +328,7 @@ class WP_Links_List_Table extends WP_List_Table { $actions['delete'] = sprintf( '%s', wp_nonce_url( "link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ), - /* translators: %s: link name */ + /* translators: %s: Link name. */ esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ), __( 'Delete' ) ); diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index b20cb5b73d..b02b97cbc8 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -609,7 +609,7 @@ class WP_List_Table { "\n", selected( $m, $year . $month, false ), esc_attr( $arc_row->year . $month ), - /* translators: 1: month name, 2: 4-digit year */ + /* translators: 1: Month name, 2: 4-digit year. */ sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year ) ); } @@ -662,19 +662,19 @@ class WP_List_Table { $pending_comments_number = number_format_i18n( $pending_comments ); $approved_only_phrase = sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s comment', '%s comments', $approved_comments ), $approved_comments_number ); $approved_phrase = sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s approved comment', '%s approved comments', $approved_comments ), $approved_comments_number ); $pending_phrase = sprintf( - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ _n( '%s pending comment', '%s pending comments', $pending_comments ), $pending_comments_number ); @@ -805,7 +805,7 @@ class WP_List_Table { } $output = '' . sprintf( - /* translators: %s: number of items */ + /* translators: %s: Number of items. */ _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . ''; @@ -877,7 +877,7 @@ class WP_List_Table { } $html_total_pages = sprintf( "%s", number_format_i18n( $total_pages ) ); $page_links[] = $total_pages_before . sprintf( - /* translators: 1: current page, 2: total pages */ + /* translators: 1: Current page, 2: Total pages. */ _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages @@ -1397,7 +1397,7 @@ class WP_List_Table { if ( isset( $this->_pagination_args['total_items'] ) ) { $response['total_items_i18n'] = sprintf( - /* translators: number of items */ + /* translators: Number of items. */ _n( '%s item', '%s items', $this->_pagination_args['total_items'] ), number_format_i18n( $this->_pagination_args['total_items'] ) ); diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index d54f9eb1f7..3e5c385ac0 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -282,7 +282,7 @@ class WP_Media_List_Table extends WP_List_Table { public function get_columns() { $posts_columns = array(); $posts_columns['cb'] = ''; - /* translators: column name */ + /* translators: Column name. */ $posts_columns['title'] = _x( 'File', 'column name' ); $posts_columns['author'] = __( 'Author' ); @@ -311,14 +311,14 @@ class WP_Media_List_Table extends WP_List_Table { $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name; } - /* translators: column name */ + /* translators: Column name. */ if ( ! $this->detached ) { $posts_columns['parent'] = _x( 'Uploaded to', 'column name' ); if ( post_type_supports( 'attachment', 'comments' ) ) { $posts_columns['comments'] = '' . __( 'Comments' ) . ''; } } - /* translators: column name */ + /* translators: Column name. */ $posts_columns['date'] = _x( 'Date', 'column name' ); /** * Filters the Media list table columns. @@ -357,7 +357,7 @@ class WP_Media_List_Table extends WP_List_Table { ?> @@ -385,7 +385,7 @@ class WP_Media_List_Table extends WP_List_Table { $link_start = sprintf( '', get_edit_post_link( $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ) ); $link_end = ''; @@ -457,10 +457,10 @@ class WP_Media_List_Table extends WP_List_Table { $t_diff = time() - $time; if ( ( abs( $t_diff ) ) < DAY_IN_SECONDS ) { if ( $t_diff < 0 ) { - /* translators: %s: Human-readable time difference */ + /* translators: %s: Human-readable time difference. */ $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) ); } else { - /* translators: %s: Human-readable time difference */ + /* translators: %s: Human-readable time difference. */ $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); } } else { @@ -516,7 +516,7 @@ class WP_Media_List_Table extends WP_List_Table { printf( '
    %s', $detach_url, - /* translators: %s: title of the post the attachment is attached to */ + /* translators: %s: Title of the post the attachment is attached to. */ esc_attr( sprintf( __( 'Detach from “%s”' ), $title ) ), __( 'Detach' ) ); @@ -530,7 +530,7 @@ class WP_Media_List_Table extends WP_List_Table { printf( '
    %s', $post->ID, - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $title ) ), __( 'Attach' ) ); @@ -593,7 +593,7 @@ class WP_Media_List_Table extends WP_List_Table { esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ) ); } - /* translators: used between list items, there is a space after the comma */ + /* translators: Used between list items, there is a space after the comma. */ echo join( __( ', ' ), $out ); } else { echo '' . get_taxonomy( $taxonomy )->labels->no_terms . ''; @@ -670,7 +670,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['edit'] = sprintf( '%s', get_edit_post_link( $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $att_title ) ), __( 'Edit' ) ); @@ -680,7 +680,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['trash'] = sprintf( '%s', wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $att_title ) ), _x( 'Trash', 'verb' ) ); @@ -690,7 +690,7 @@ class WP_Media_List_Table extends WP_List_Table { '%s', wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), $delete_ays, - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $att_title ) ), __( 'Delete Permanently' ) ); @@ -699,7 +699,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', get_permalink( $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), __( 'View' ) ); @@ -708,7 +708,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['attach'] = sprintf( '%s', $post->ID, - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Attach “%s” to existing content' ), $att_title ) ), __( 'Attach' ) ); @@ -718,7 +718,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['edit'] = sprintf( '%s', get_edit_post_link( $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $att_title ) ), __( 'Edit' ) ); @@ -728,7 +728,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['untrash'] = sprintf( '%s', wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $att_title ) ), __( 'Restore' ) ); @@ -736,7 +736,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['trash'] = sprintf( '%s', wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $att_title ) ), _x( 'Trash', 'verb' ) ); @@ -747,7 +747,7 @@ class WP_Media_List_Table extends WP_List_Table { '%s', wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID ), $delete_ays, - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $att_title ) ), __( 'Delete Permanently' ) ); @@ -757,7 +757,7 @@ class WP_Media_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', get_permalink( $post->ID ), - /* translators: %s: attachment title */ + /* translators: %s: Attachment title. */ esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ), __( 'View' ) ); diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index 4fea5a13b7..220e834081 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -281,7 +281,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { ?> @@ -344,7 +344,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table { switch_to_blog( $blog['blog_id'] ); echo '

    '; printf( - /* translators: 1: site name, 2: site tagline. */ + /* translators: 1: Site title, 2: Site tagline. */ __( '%1$s – %2$s' ), get_option( 'blogname' ), '' . get_option( 'blogdescription ' ) . '' diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index da2bbff39f..cb1f34999d 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -300,7 +300,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { switch ( $type ) { case 'all': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'All (%s)', 'All (%s)', @@ -309,7 +309,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'enabled': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Enabled (%s)', 'Enabled (%s)', @@ -318,7 +318,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'disabled': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Disabled (%s)', 'Disabled (%s)', @@ -327,7 +327,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'upgrade': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Update Available (%s)', 'Update Available (%s)', @@ -336,7 +336,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); break; case 'broken': - /* translators: %s: number of themes */ + /* translators: %s: Number of themes. */ $text = _nx( 'Broken (%s)', 'Broken (%s)', @@ -461,10 +461,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); if ( $this->is_site_themes ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Enable %s' ), $theme->display( 'Name' ) ); } else { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Enable %s' ), $theme->display( 'Name' ) ); } @@ -487,10 +487,10 @@ class WP_MS_Themes_List_Table extends WP_List_Table { ); if ( $this->is_site_themes ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Disable %s' ), $theme->display( 'Name' ) ); } else { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Network Disable %s' ), $theme->display( 'Name' ) ); } @@ -514,7 +514,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { 'themes.php' ); - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( _x( 'Delete %s', 'theme' ), $theme->display( 'Name' ) ); $actions['delete'] = sprintf( @@ -602,15 +602,15 @@ class WP_MS_Themes_List_Table extends WP_List_Table { $theme_meta = array(); if ( $theme->get( 'Version' ) ) { - /* translators: %s: theme version */ + /* translators: %s: Theme version. */ $theme_meta[] = sprintf( __( 'Version %s' ), $theme->display( 'Version' ) ); } - /* translators: %s: theme author */ + /* translators: %s: Theme author. */ $theme_meta[] = sprintf( __( 'By %s' ), $theme->display( 'Author' ) ); if ( $theme->get( 'ThemeURI' ) ) { - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $aria_label = sprintf( __( 'Visit %s homepage' ), $theme->display( 'Name' ) ); $theme_meta[] = sprintf( diff --git a/wp-admin/includes/class-wp-ms-users-list-table.php b/wp-admin/includes/class-wp-ms-users-list-table.php index e181723585..1fd437ca2f 100644 --- a/wp-admin/includes/class-wp-ms-users-list-table.php +++ b/wp-admin/includes/class-wp-ms-users-list-table.php @@ -144,7 +144,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { network_admin_url( 'users.php' ), $current_link_attributes, sprintf( - /* translators: number of users */ + /* translators: Number of users. */ _nx( 'All (%s)', 'All (%s)', @@ -160,7 +160,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { network_admin_url( 'users.php?role=super' ), $current_link_attributes, sprintf( - /* translators: number of users */ + /* translators: Number of users. */ _n( 'Super Admin (%s)', 'Super Admins (%s)', @@ -237,7 +237,7 @@ class WP_MS_Users_List_Table extends WP_List_Table { ?> diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 47aacbea71..89149daf86 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -499,7 +499,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $author = wp_kses( $plugin['author'], $plugins_allowedtags ); if ( ! empty( $author ) ) { - /* translators: %s: plugin author */ + /* translators: %s: Plugin author. */ $author = ' ' . sprintf( __( 'By %s' ), $author ) . ''; } @@ -523,7 +523,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { '%s', esc_attr( $plugin['slug'] ), esc_url( $status['url'] ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'Install %s now' ), $name ) ), esc_attr( $name ), __( 'Install Now' ) @@ -545,7 +545,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { esc_attr( $status['file'] ), esc_attr( $plugin['slug'] ), esc_url( $status['url'] ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'Update %s now' ), $name ) ), esc_attr( $name ), __( 'Update Now' ) @@ -568,7 +568,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { ); } elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) { $button_text = __( 'Activate' ); - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ $button_label = _x( 'Activate %s', 'plugin' ); $activate_url = add_query_arg( array( @@ -581,7 +581,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { if ( is_network_admin() ) { $button_text = __( 'Network Activate' ); - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ $button_label = _x( 'Network Activate %s', 'plugin' ); $activate_url = add_query_arg( array( 'networkwide' => 1 ), $activate_url ); } @@ -610,7 +610,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { $action_links[] = sprintf( '%s', esc_url( $details_link ), - /* translators: %s: plugin name and version */ + /* translators: %s: Plugin name and version. */ esc_attr( sprintf( __( 'More information about %s' ), $name ) ), esc_attr( $name ), __( 'More Details' ) @@ -646,7 +646,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your versions of WordPress and PHP.' ); if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) { printf( - /* translators: 1: "Update WordPress" screen URL, 2: "Update PHP" page URL */ + /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */ ' ' . __( 'Please update WordPress, and then learn more about updating PHP.' ), self_admin_url( 'update-core.php' ), esc_url( wp_get_update_php_url() ) @@ -654,13 +654,13 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { wp_update_php_annotation( '

    ', '' ); } elseif ( current_user_can( 'update_core' ) ) { printf( - /* translators: %s: "Update WordPress" screen URL */ + /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); } elseif ( current_user_can( 'update_php' ) ) { printf( - /* translators: %s: "Update PHP" page URL */ + /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); @@ -670,7 +670,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your version of WordPress.' ); if ( current_user_can( 'update_core' ) ) { printf( - /* translators: %s: "Update WordPress" screen URL */ + /* translators: %s: URL to WordPress Updates screen. */ ' ' . __( 'Please update WordPress.' ), self_admin_url( 'update-core.php' ) ); @@ -679,7 +679,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { _e( 'This plugin doesn’t work with your version of PHP.' ); if ( current_user_can( 'update_php' ) ) { printf( - /* translators: %s: "Update PHP" page URL */ + /* translators: %s: URL to Update PHP page. */ ' ' . __( 'Learn more about updating PHP.' ), esc_url( wp_get_update_php_url() ) ); @@ -726,7 +726,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {

    @@ -735,7 +735,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { if ( $plugin['active_installs'] >= 1000000 ) { $active_installs_millions = floor( $plugin['active_installs'] / 1000000 ); $active_installs_text = sprintf( - /* translators: %s: number of millions */ + /* translators: %s: Number of millions. */ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), number_format_i18n( $active_installs_millions ) ); @@ -744,7 +744,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { } else { $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+'; } - /* translators: %s: number of installations */ + /* translators: %s: Number of installations. */ printf( __( '%s Active Installations' ), $active_installs_text ); ?>
    diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index ad19b140f4..61cc64821b 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -348,7 +348,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( ! empty( $_REQUEST['s'] ) ) { $s = esc_html( wp_unslash( $_REQUEST['s'] ) ); - /* translators: %s: plugin search term */ + /* translators: %s: Plugin search term. */ printf( __( 'No plugins found for “%s”.' ), $s ); // We assume that somebody who can install plugins in multisite is experienced enough to not need this helper link. @@ -429,7 +429,7 @@ class WP_Plugins_List_Table extends WP_List_Table { switch ( $type ) { case 'all': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _nx( 'All (%s)', 'All (%s)', @@ -438,7 +438,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'active': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Active (%s)', 'Active (%s)', @@ -446,7 +446,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'recently_activated': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Recently Active (%s)', 'Recently Active (%s)', @@ -454,7 +454,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'inactive': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Inactive (%s)', 'Inactive (%s)', @@ -462,7 +462,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'mustuse': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Must-Use (%s)', 'Must-Use (%s)', @@ -470,7 +470,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'dropins': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Drop-in (%s)', 'Drop-ins (%s)', @@ -478,7 +478,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'paused': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Paused (%s)', 'Paused (%s)', @@ -486,7 +486,7 @@ class WP_Plugins_List_Table extends WP_List_Table { ); break; case 'upgrade': - /* translators: %s: number of plugins */ + /* translators: %s: Number of plugins. */ $text = _n( 'Update Available (%s)', 'Update Available (%s)', @@ -568,13 +568,13 @@ class WP_Plugins_List_Table extends WP_List_Table { submit_button( __( 'Clear List' ), '', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { echo '

    ' . sprintf( - /* translators: %s: mu-plugins directory name */ + /* translators: %s: mu-plugins directory name. */ __( 'Files in the %s directory are executed automatically.' ), '' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '' ) . '

    '; } elseif ( 'top' === $which && 'dropins' === $status ) { echo '

    ' . sprintf( - /* translators: %s: wp-content directory name */ + /* translators: %s: wp-content directory name. */ __( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ), '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '' ) . '

    '; @@ -653,7 +653,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $is_active = false; $description = '

    ' . $dropins[ $plugin_file ][0] . ' ' . __( 'Inactive:' ) . ' ' . sprintf( - /* translators: 1: drop-in constant name, 2: wp-config.php */ + /* translators: 1: Drop-in constant name, 2: wp-config.php */ __( 'Requires %1$s in %2$s file.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);", 'wp-config.php' @@ -674,17 +674,32 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( $screen->in_admin( 'network' ) ) { if ( $is_active ) { if ( current_user_can( 'manage_network_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Network Deactivate' ) . ''; + $actions['deactivate'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Network Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Network Deactivate' ) + ); } } else { if ( current_user_can( 'manage_network_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Network Activate' ) . ''; + $actions['activate'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Network Activate %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Network Activate' ) + ); } if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; + $actions['delete'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Delete' ) + ); } } } else { @@ -698,22 +713,42 @@ class WP_Plugins_List_Table extends WP_List_Table { ); } elseif ( $is_active ) { if ( current_user_can( 'deactivate_plugin', $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['deactivate'] = '' . __( 'Deactivate' ) . ''; + $actions['deactivate'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'deactivate-plugin_' . $plugin_file ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Deactivate %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Deactivate' ) + ); } if ( current_user_can( 'resume_plugin', $plugin_file ) && is_plugin_paused( $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['resume'] = '' . __( 'Resume' ) . ''; + $actions['resume'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=resume&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'resume-plugin_' . $plugin_file ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Resume %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Resume' ) + ); } } else { if ( current_user_can( 'activate_plugin', $plugin_file ) ) { - /* translators: %s: plugin name */ - $actions['activate'] = '' . __( 'Activate' ) . ''; + $actions['activate'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=activate&plugin=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'activate-plugin_' . $plugin_file ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Activate %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Activate' ) + ); } if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { - /* translators: %s: plugin name */ - $actions['delete'] = '' . __( 'Delete' ) . ''; + $actions['delete'] = sprintf( + '%s', + wp_nonce_url( 'plugins.php?action=delete-selected&checked[]=' . urlencode( $plugin_file ) . '&plugin_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-plugins' ), + /* translators: %s: Plugin name. */ + esc_attr( sprintf( _x( 'Delete %s', 'plugin' ), $plugin_data['Name'] ) ), + __( 'Delete' ) + ); } } // end if $is_active } // end if $screen->in_admin( 'network' ) @@ -805,7 +840,7 @@ class WP_Plugins_List_Table extends WP_List_Table { '' . '', $checkbox_id, - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ sprintf( __( 'Select %s' ), $plugin_data['Name'] ), esc_attr( $plugin_file ) ); @@ -859,7 +894,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $plugin_meta = array(); if ( ! empty( $plugin_data['Version'] ) ) { - /* translators: %s: plugin version number */ + /* translators: %s: Plugin version number. */ $plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } if ( ! empty( $plugin_data['Author'] ) ) { @@ -867,7 +902,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( ! empty( $plugin_data['AuthorURI'] ) ) { $author = '' . $plugin_data['Author'] . ''; } - /* translators: %s: plugin version number */ + /* translators: %s: Plugin version number. */ $plugin_meta[] = sprintf( __( 'By %s' ), $author ); } @@ -881,7 +916,7 @@ class WP_Plugins_List_Table extends WP_List_Table { '&TB_iframe=true&width=600&height=550' ) ), - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ), esc_attr( $plugin_name ), __( 'View details' ) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index b0346ddaaa..71c77d877a 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -305,7 +305,7 @@ class WP_Posts_List_Table extends WP_List_Table { ); $mine_inner_html = sprintf( - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ _nx( 'Mine (%s)', 'Mine (%s)', @@ -326,7 +326,7 @@ class WP_Posts_List_Table extends WP_List_Table { } $all_inner_html = sprintf( - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ _nx( 'All (%s)', 'All (%s)', @@ -376,7 +376,7 @@ class WP_Posts_List_Table extends WP_List_Table { ); $sticky_inner_html = sprintf( - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ _nx( 'Sticky (%s)', 'Sticky (%s)', @@ -607,7 +607,7 @@ class WP_Posts_List_Table extends WP_List_Table { $posts_columns['cb'] = ''; - /* translators: manage posts column name */ + /* translators: Posts screen column name. */ $posts_columns['title'] = _x( 'Title', 'column name' ); if ( post_type_supports( $post_type, 'author' ) ) { @@ -921,7 +921,7 @@ class WP_Posts_List_Table extends WP_List_Table { ?> @@ -931,7 +931,7 @@ class WP_Posts_List_Table extends WP_List_Table { ID, 18 ); - /* translators: %s: user's display name */ + /* translators: %s: User's display name. */ $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) ); } else { $locked_avatar = ''; @@ -1018,7 +1018,7 @@ class WP_Posts_List_Table extends WP_List_Table { printf( '%s%s', get_edit_post_link( $post->ID ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ), $pad, $title @@ -1073,7 +1073,7 @@ class WP_Posts_List_Table extends WP_List_Table { $time_diff = time() - $time; if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) { - /* translators: %s: Human-readable time difference */ + /* translators: %s: Human-readable time difference. */ $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); } else { $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); @@ -1216,7 +1216,7 @@ class WP_Posts_List_Table extends WP_List_Table { */ $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms ); - /* translators: used between list items, there is a space after the comma */ + /* translators: Used between list items, there is a space after the comma. */ echo join( __( ', ' ), $term_links ); } else { echo '' . $taxonomy_object->labels->no_terms . ''; @@ -1338,7 +1338,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['edit'] = sprintf( '%s', get_edit_post_link( $post->ID ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), __( 'Edit' ) ); @@ -1346,7 +1346,7 @@ class WP_Posts_List_Table extends WP_List_Table { if ( 'wp_block' !== $post->post_type ) { $actions['inline hide-if-no-js'] = sprintf( '', - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), __( 'Quick Edit' ) ); @@ -1358,7 +1358,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['untrash'] = sprintf( '%s', wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $title ) ), __( 'Restore' ) ); @@ -1366,7 +1366,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['trash'] = sprintf( '%s', get_delete_post_link( $post->ID ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $title ) ), _x( 'Trash', 'verb' ) ); @@ -1375,7 +1375,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['delete'] = sprintf( '%s', get_delete_post_link( $post->ID, '', true ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Delete “%s” permanently' ), $title ) ), __( 'Delete Permanently' ) ); @@ -1389,7 +1389,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', esc_url( $preview_link ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ), __( 'Preview' ) ); @@ -1398,7 +1398,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', get_permalink( $post->ID ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'View “%s”' ), $title ) ), __( 'View' ) ); @@ -1409,7 +1409,7 @@ class WP_Posts_List_Table extends WP_List_Table { $actions['export'] = sprintf( '', $post->ID, - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Export “%s” as JSON' ), $title ) ), __( 'Export as JSON' ) ); @@ -1610,7 +1610,7 @@ class WP_Posts_List_Table extends WP_List_Table { diff --git a/wp-admin/includes/class-wp-privacy-policy-content.php b/wp-admin/includes/class-wp-privacy-policy-content.php index 723986e99f..5ce9bdfbd6 100644 --- a/wp-admin/includes/class-wp-privacy-policy-content.php +++ b/wp-admin/includes/class-wp-privacy-policy-content.php @@ -140,7 +140,7 @@ final class WP_Privacy_Policy_Content {

    review the guide and update your privacy policy.' ), esc_url( admin_url( 'privacy-policy-guide.php' ) ) ); @@ -353,7 +353,7 @@ final class WP_Privacy_Policy_Content { ' %s %s', $url, $label, - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ); ?> @@ -386,16 +386,16 @@ final class WP_Privacy_Policy_Content { if ( ! empty( $section['removed'] ) ) { $class = ' text-removed'; $date = date_i18n( $date_format, $section['removed'] ); - /* translators: %s: date of plugin deactivation */ + /* translators: %s: Date of plugin deactivation. */ $meta = sprintf( __( 'Removed %s.' ), $date ); - /* translators: %s: date of plugin deactivation */ + /* translators: %s: Date of plugin deactivation. */ $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' ); $removed = '

    ' . sprintf( $removed, $date ) . '

    '; } elseif ( ! empty( $section['updated'] ) ) { $class = ' text-updated'; $date = date_i18n( $date_format, $section['updated'] ); - /* translators: %s: date of privacy policy text update */ + /* translators: %s: Date of privacy policy text update. */ $meta = sprintf( __( 'Updated %s.' ), $date ); } @@ -409,7 +409,7 @@ final class WP_Privacy_Policy_Content { $content .= '
    '; $content .= ' '; - /* translators: %s: plugin name */ + /* translators: %s: Plugin name. */ $content .= '

    ' . sprintf( __( 'Source: %s' ), $plugin_name ) . '

    '; $content .= $removed; @@ -421,7 +421,7 @@ final class WP_Privacy_Policy_Content { $content .= ''; @@ -481,201 +481,201 @@ final class WP_Privacy_Policy_Content { $strings[] = '
    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Who we are' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should note your site URL, as well as the name of the company, organization, or individual behind it, and some accurate contact information.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'The amount of information you may be required to show will vary depending on your local or national business regulations. You may, for example, be required to display a physical address, a registered address, or your company registration number.' ) . '

    '; } - /* translators: default privacy policy text, %s Site URL. */ + /* translators: Default privacy policy text. %s: Site URL. */ $strings[] = '

    ' . $suggested_text . sprintf( __( 'Our website address is: %s.' ), get_bloginfo( 'url', 'display' ) ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'What personal data we collect and why we collect it' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should note what personal data you collect from users and site visitors. This may include personal data, such as name, email address, personal account preferences; transactional data, such as purchase information; and technical data, such as information about cookies.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'You should also note any collection and retention of sensitive personal data, such as data concerning health.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In addition to listing what personal data you collect, you need to note why you collect it. These explanations must note either the legal basis for your data collection and retention or the active consent the user has given.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'Personal data is not just created by a user’s interactions with your site. Personal data is also generated from technical processes such as contact forms, comments, cookies, analytics, and third party embeds.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'By default WordPress does not collect any personal data about visitors, and only collects the data shown on the User Profile screen from registered users. However some of your plugins may collect personal data. You should add the relevant information below.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Comments' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this subsection you should note what information is captured through comments. We have noted the data which WordPress collects by default.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Media' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this subsection you should note what information may be disclosed by users who can upload media files. All uploaded files are usually publicly accessible.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Contact forms' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'By default, WordPress does not include a contact form. If you use a contact form plugin, use this subsection to note what personal data is captured when someone submits a contact form, and how long you keep it. For example, you may note that you keep contact form submissions for a certain period for customer service purposes, but you do not use the information submitted through them for marketing purposes.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Cookies' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this subsection you should list the cookies your web site uses, including those set by your plugins, social media, and analytics. We have provided the cookies which WordPress installs by default.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Embedded content from other websites' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Analytics' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this subsection you should note what analytics package you use, how users can opt out of analytics tracking, and a link to your analytics provider’s privacy policy, if any.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'By default WordPress does not collect any analytics data. However, many web hosting accounts collect some anonymous analytics data. You may also have installed a WordPress plugin that provides analytics services. In that case, add information from that plugin here.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Who we share your data with' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should name and list all third party providers with whom you share site data, including partners, cloud-based services, payment processors, and third party service providers, and note what data you share with them and why. Link to their own privacy policies if possible.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'By default WordPress does not share any personal data with anyone.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'How long we retain your data' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should explain how long you retain personal data collected or processed by the web site. While it is your responsibility to come up with the schedule of how long you keep each dataset for and why you keep it, that information does need to be listed here. For example, you may want to say that you keep contact form entries for six months, analytics records for a year, and customer purchase records for ten years.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.' ) . '

    '; - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . __( 'For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'What rights you have over your data' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should explain what rights your users have over their data and how they can invoke those rights.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Where we send your data' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should list all transfers of your site data outside the European Union and describe the means by which that data is safeguarded to European data protection standards. This could include your web hosting, cloud storage, or other third party services.' ) . '

    '; - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'European data protection law requires data about European residents which is transferred outside the European Union to be safeguarded to the same standards as if the data was in Europe. So in addition to listing where data goes, you should describe how you ensure that these standards are met either by yourself or by your third party providers, whether that is through an agreement such as Privacy Shield, model clauses in your contracts, or binding corporate rules.' ) . '

    '; } - /* translators: default privacy policy text. */ + /* translators: Default privacy policy text. */ $strings[] = '

    ' . $suggested_text . __( 'Visitor comments may be checked through an automated spam detection service.' ) . '

    '; - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Your contact information' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should provide a contact method for privacy-specific concerns. If you are required to have a Data Protection Officer, list their name and full contact details here as well.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Additional information' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'If you use your site for commercial purposes and you engage in more complex collection or processing of personal data, you should note the following information in your privacy policy in addition to the information we have already discussed.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'How we protect your data' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should explain what measures you have taken to protect your users’ data. This could include technical measures such as encryption; security measures such as two factor authentication; and measures such as staff training in data protection. If you have carried out a Privacy Impact Assessment, you can mention it here too.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'What data breach procedures we have in place' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'In this section you should explain what procedures you have in place to deal with data breaches, either potential or real, such as internal reporting systems, contact mechanisms, or bug bounties.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'What third parties we receive data from' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'If your web site receives data about users from third parties, including advertisers, this information must be included within the section of your privacy policy dealing with third party data.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'What automated decision making and/or profiling we do with user data' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'If your web site provides a service which includes automated decision making - for example, allowing customers to apply for credit, or aggregating their data into an advertising profile - you must note that this is taking place, and include information about how that information is used, what decisions are made with that aggregated data, and what rights users have over decisions made without human intervention.' ) . '

    '; } - /* translators: default privacy policy heading. */ + /* translators: Default privacy policy heading. */ $strings[] = '

    ' . __( 'Industry regulatory disclosure requirements' ) . '

    '; if ( $description ) { - /* translators: privacy policy tutorial. */ + /* translators: Privacy policy tutorial. */ $strings[] = '

    ' . __( 'If you are a member of a regulated industry, or if you are subject to additional privacy laws, you may be required to disclose that information here.' ) . '

    '; $strings[] = '
    '; } diff --git a/wp-admin/includes/class-wp-privacy-requests-table.php b/wp-admin/includes/class-wp-privacy-requests-table.php index 125e6bae9a..b252d1a4e6 100644 --- a/wp-admin/includes/class-wp-privacy-requests-table.php +++ b/wp-admin/includes/class-wp-privacy-requests-table.php @@ -151,7 +151,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { $current_link_attributes = empty( $current_status ) ? ' class="current" aria-current="page"' : ''; $status_label = sprintf( - /* translators: %s: all requests count */ + /* translators: %s: Number of requests. */ _nx( 'All (%s)', 'All (%s)', @@ -235,7 +235,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { add_settings_error( 'bulk_action', 'bulk_action', - /* translators: %d: number of requests */ + /* translators: %d: Number of requests. */ sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ), 'success' ); @@ -252,7 +252,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { add_settings_error( 'bulk_action', 'bulk_action', - /* translators: %d: number of requests */ + /* translators: %d: Number of requests. */ sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ), 'success' ); @@ -380,7 +380,7 @@ abstract class WP_Privacy_Requests_Table extends WP_List_Table { $time_diff = time() - $timestamp; if ( $time_diff >= 0 && $time_diff < DAY_IN_SECONDS ) { - /* translators: %s: Human-readable time difference */ + /* translators: %s: Human-readable time difference. */ return sprintf( __( '%s ago' ), human_time_diff( $timestamp ) ); } diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php index a54cfca527..41b20a1024 100644 --- a/wp-admin/includes/class-wp-screen.php +++ b/wp-admin/includes/class-wp-screen.php @@ -1167,7 +1167,7 @@ final class WP_Screen { /> sprintf( - // translators: 1: Folder name. 2: Version control directory. 3: Filter name. + /* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */ __( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ), '' . $check_dir . '', "$vcs_dir", @@ -257,7 +257,7 @@ class WP_Site_Health_Auto_Updates { if ( $checkout ) { return array( 'description' => sprintf( - // translators: 1: Folder name. 2: Version control directory. + /* translators: 1: Folder name. 2: Version control directory. */ __( 'The folder %1$s was detected as being under version control (%2$s).' ), '' . $check_dir . '', "$vcs_dir" @@ -340,7 +340,7 @@ class WP_Site_Health_Auto_Updates { if ( ! $checksums ) { $description = sprintf( - // translators: %s: WordPress version + /* translators: %s: WordPress version. */ __( "Couldn't retrieve a list of the checksums for WordPress %s." ), $wp_version ); diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index c759effd83..8ced4646bb 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -204,7 +204,7 @@ class WP_Site_Health { $result['status'] = 'recommended'; $result['label'] = sprintf( - // translators: %s: Your current version of WordPress. + /* translators: %s: Your current version of WordPress. */ __( 'WordPress version %s' ), $core_current_version ); @@ -229,7 +229,7 @@ class WP_Site_Health { $new_major = $new_version[0] . '.' . $new_version[1]; $result['label'] = sprintf( - // translators: %s: The latest version of WordPress available. + /* translators: %s: The latest version of WordPress available. */ __( 'WordPress update available (%s)' ), $update->version ); @@ -259,7 +259,7 @@ class WP_Site_Health { } else { $result['status'] = 'good'; $result['label'] = sprintf( - // translators: %s: The current version of WordPress installed on this site. + /* translators: %s: The current version of WordPress installed on this site. */ __( 'Your WordPress version is up to date (%s)' ), $core_current_version ); @@ -653,7 +653,7 @@ class WP_Site_Health { $result = array( 'label' => sprintf( - // translators: %s: The current PHP version. + /* translators: %s: The current PHP version. */ __( 'PHP is up to date (%s)' ), PHP_VERSION ), @@ -670,7 +670,7 @@ class WP_Site_Health { '

    %s %s

    ', esc_url( wp_get_update_php_url() ), __( 'Learn more about updating PHP' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'php_version', @@ -762,7 +762,7 @@ class WP_Site_Health { 'target="_blank" rel="noopener noreferrer"', sprintf( ' %s', - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ) ) @@ -962,7 +962,7 @@ class WP_Site_Health { /* translators: Localized version of WordPress requirements if one exists. */ esc_url( __( 'https://wordpress.org/about/requirements/' ) ), __( 'Learn more about what WordPress requires to run.' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'sql_server', @@ -1195,7 +1195,7 @@ class WP_Site_Health { /* translators: Localized Support reference. */ esc_url( __( 'https://wordpress.org/support' ) ), __( 'Get help resolving this issue.' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ); } @@ -1233,7 +1233,7 @@ class WP_Site_Health { /* translators: Documentation explaining debugging in WordPress. */ esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ), __( 'Learn more about debugging in WordPress.' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'is_in_debug_mode', @@ -1302,7 +1302,7 @@ class WP_Site_Health { /* translators: Documentation explaining HTTPS and why it should be used. */ esc_url( __( 'https://wordpress.org/support/article/why-should-i-use-https/' ) ), __( 'Learn more about why you should use HTTPS' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ), 'test' => 'https_status', @@ -1320,7 +1320,7 @@ class WP_Site_Health { $result['description'] = sprintf( '

    %s

    ', sprintf( - /* translators: %s: URL to Settings > General to change options. */ + /* translators: %s: URL to General Settings screen. */ __( 'You are accessing this website using HTTPS, but your WordPress Address is not set up to use HTTPS by default.' ), esc_url( admin_url( 'options-general.php' ) ) ) @@ -1738,7 +1738,7 @@ class WP_Site_Health { $result['description'] .= sprintf( '

    %s

    ', sprintf( - /* translators: %s: the name of the query parameter being tested. */ + /* translators: %s: The name of the query parameter being tested. */ __( 'The REST API did not process the %s query parameter correctly.' ), 'context' ) @@ -2017,7 +2017,7 @@ class WP_Site_Health { '%s
    %s', __( 'The loopback request to your site failed, this means features relying on them are not currently working as expected.' ), sprintf( - // translators: 1: The HTTP response code. 2: The error message returned. + /* translators: 1: The HTTP response code. 2: The error message returned. */ __( 'Error: [%1$s] %2$s' ), wp_remote_retrieve_response_code( $r ), $r->get_error_message() @@ -2030,7 +2030,7 @@ class WP_Site_Health { return (object) array( 'status' => 'recommended', 'message' => sprintf( - // translators: %d: The HTTP response code returned. + /* translators: %d: The HTTP response code returned. */ __( 'The loopback request returned an unexpected http status code, %d, it was not possible to determine if this will prevent features from working as expected.' ), wp_remote_retrieve_response_code( $r ) ), diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index 84e9682005..33ef9fa8d6 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -359,7 +359,7 @@ class WP_Terms_List_Table extends WP_List_Table { '' . '', $tag->term_id, - /* translators: %s: term name */ + /* translators: %s: Taxonomy term name. */ sprintf( __( 'Select %s' ), $tag->name ) ); } @@ -406,7 +406,7 @@ class WP_Terms_List_Table extends WP_List_Table { $name = sprintf( '%s', esc_url( $edit_link ), - /* translators: %s: taxonomy term name */ + /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ), $name ); @@ -468,13 +468,13 @@ class WP_Terms_List_Table extends WP_List_Table { $actions['edit'] = sprintf( '%s', esc_url( $edit_link ), - /* translators: %s: taxonomy term name */ + /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ), __( 'Edit' ) ); $actions['inline hide-if-no-js'] = sprintf( '', - /* translators: %s: taxonomy term name */ + /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), __( 'Quick Edit' ) ); @@ -483,7 +483,7 @@ class WP_Terms_List_Table extends WP_List_Table { $actions['delete'] = sprintf( '%s', wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ), - /* translators: %s: taxonomy term name */ + /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ), __( 'Delete' ) ); @@ -492,7 +492,7 @@ class WP_Terms_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', get_term_link( $tag ), - /* translators: %s: taxonomy term name */ + /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'View “%s” archive' ), $tag->name ) ), __( 'View' ) ); diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 4e0a9deffc..abf80d2fcc 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -264,7 +264,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $name = wp_kses( $theme->name, $themes_allowedtags ); $author = wp_kses( $theme->author, $themes_allowedtags ); - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ $preview_title = sprintf( __( 'Preview “%s”' ), $name ); $preview_url = add_query_arg( array( @@ -299,7 +299,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $actions[] = sprintf( '%s', esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ), - /* translators: %s: theme version */ + /* translators: %s: Theme version. */ esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ), __( 'Update' ) ); @@ -317,7 +317,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $actions[] = sprintf( '%s', esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ esc_attr( sprintf( __( 'Install %s' ), $name ) ), __( 'Install Now' ) ); @@ -327,7 +327,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $actions[] = sprintf( '%s', esc_url( $preview_url ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ esc_attr( sprintf( __( 'Preview %s' ), $name ) ), __( 'Preview' ) ); @@ -351,7 +351,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {

    @@ -457,7 +457,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { printf( '%s', esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ), - /* translators: %s: theme version */ + /* translators: %s: Theme version. */ esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ), __( 'Update' ) ); @@ -483,7 +483,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {

    diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index 81cdffac8b..fa0addab9e 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -98,7 +98,7 @@ class WP_Themes_List_Table extends WP_List_Table { if ( is_multisite() ) { if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { printf( - /* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen */ + /* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen. */ __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable or install more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) @@ -107,7 +107,7 @@ class WP_Themes_List_Table extends WP_List_Table { return; } elseif ( current_user_can( 'manage_network_themes' ) ) { printf( - /* translators: %s: URL to Themes tab on Edit Site screen */ + /* translators: %s: URL to Themes tab on Edit Site screen. */ __( 'You only have one theme enabled for this site right now. Visit the Network Admin to enable more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ) ); @@ -118,7 +118,7 @@ class WP_Themes_List_Table extends WP_List_Table { } else { if ( current_user_can( 'install_themes' ) ) { printf( - /* translators: %s: URL to Add Themes screen */ + /* translators: %s: URL to Add Themes screen. */ __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the Install Themes tab above.' ), admin_url( 'theme-install.php' ) ); @@ -128,7 +128,7 @@ class WP_Themes_List_Table extends WP_List_Table { } // Fallthrough. printf( - /* translators: %s: network title */ + /* translators: %s: Network title. */ __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); @@ -206,7 +206,7 @@ class WP_Themes_List_Table extends WP_List_Table { $actions['activate'] = sprintf( '%s', $activate_link, - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ esc_attr( sprintf( __( 'Activate “%s”' ), $title ) ), __( 'Activate' ) ); @@ -223,7 +223,7 @@ class WP_Themes_List_Table extends WP_List_Table { $actions['delete'] = sprintf( '%s', wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ), - /* translators: %s: theme name */ + /* translators: %s: Theme name. */ esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $title ) ), __( 'Delete' ) ); @@ -254,7 +254,7 @@ class WP_Themes_List_Table extends WP_List_Table {

    @@ -276,7 +276,7 @@ class WP_Themes_List_Table extends WP_List_Table { parent() ) { printf( - /* translators: %s: link to documentation on child themes */ + /* translators: %s: Link to documentation on child themes. */ '

    ' . __( 'This child theme requires its parent theme, %2$s.' ) . '

    ', __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ), $theme->parent()->display( 'Name' ) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index d99c7a2f9d..cc7c05bcb2 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -153,7 +153,7 @@ class WP_Upgrader { $this->strings['fs_no_content_dir'] = __( 'Unable to locate WordPress content directory (wp-content).' ); $this->strings['fs_no_plugins_dir'] = __( 'Unable to locate WordPress plugin directory.' ); $this->strings['fs_no_themes_dir'] = __( 'Unable to locate WordPress theme directory.' ); - /* translators: %s: directory name */ + /* translators: %s: Directory name. */ $this->strings['fs_no_folder'] = __( 'Unable to locate needed folder (%s).' ); $this->strings['download_failed'] = __( 'Download failed.' ); diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php index df4184a3d2..8653df887a 100644 --- a/wp-admin/includes/class-wp-users-list-table.php +++ b/wp-admin/includes/class-wp-users-list-table.php @@ -199,7 +199,7 @@ class WP_Users_List_Table extends WP_List_Table { $url, $current_link_attributes, sprintf( - /* translators: %s: number of users */ + /* translators: %s: Number of users. */ _nx( 'All (%s)', 'All (%s)', @@ -222,8 +222,13 @@ class WP_Users_List_Table extends WP_List_Table { } $name = translate_user_role( $name ); - /* translators: User role name with count */ - $name = sprintf( __( '%1$s (%2$s)' ), $name, number_format_i18n( $avail_roles[ $this_role ] ) ); + $name = sprintf( + /* translators: User role name with count. */ + __( '%1$s (%2$s)' ), + $name, + number_format_i18n( $avail_roles[ $this_role ] ) + ); + $role_links[ $this_role ] = "$name"; } @@ -236,10 +241,14 @@ class WP_Users_List_Table extends WP_List_Table { } $name = __( 'No role' ); - /* translators: User role name with count */ - $name = sprintf( __( '%1$s (%2$s)' ), $name, number_format_i18n( $avail_roles['none'] ) ); - $role_links['none'] = "$name"; + $name = sprintf( + /* translators: User role name with count. */ + __( '%1$s (%2$s)' ), + $name, + number_format_i18n( $avail_roles['none'] ) + ); + $role_links['none'] = "$name"; } return $role_links; @@ -456,7 +465,7 @@ class WP_Users_List_Table extends WP_List_Table { $actions['view'] = sprintf( '%s', esc_url( $author_posts_url ), - /* translators: %s: author's display name */ + /* translators: %s: Author's display name. */ esc_attr( sprintf( __( 'View posts by %s' ), $user_object->display_name ) ), __( 'View' ) ); @@ -482,7 +491,7 @@ class WP_Users_List_Table extends WP_List_Table { '' . '', $user_object->ID, - /* translators: %s: user login */ + /* translators: %s: User login. */ sprintf( __( 'Select %s' ), $user_object->user_login ), $role_classes ); @@ -552,7 +561,7 @@ class WP_Users_List_Table extends WP_List_Table { "edit.php?author={$user_object->ID}", $numposts, sprintf( - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ _n( '%s post by this author', '%s posts by this author', $numposts ), number_format_i18n( $numposts ) ) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 05adf7c061..3b687879ea 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -269,10 +269,10 @@ function wp_dashboard_right_now() { $num_posts = wp_count_posts( $post_type ); if ( $num_posts && $num_posts->publish ) { if ( 'post' == $post_type ) { - /* translators: %s: number of posts */ + /* translators: %s: Number of posts. */ $text = _n( '%s Post', '%s Posts', $num_posts->publish ); } else { - /* translators: %s: number of pages */ + /* translators: %s: Number of pages. */ $text = _n( '%s Page', '%s Pages', $num_posts->publish ); } $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); @@ -287,13 +287,13 @@ function wp_dashboard_right_now() { // Comments $num_comm = wp_count_comments(); if ( $num_comm && ( $num_comm->approved || $num_comm->moderated ) ) { - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); ?>
  • moderated ); - /* translators: %s: number of comments */ + /* translators: %s: Number of comments. */ $text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $num_comm->moderated ), $moderated_comments_count_i18n ); ?>
  • %s
  • ', esc_url( $url ), - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), esc_html( $title ), get_the_time( 'c', $draft ), @@ -663,19 +663,70 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { $trash_url = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); $delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" ); - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; - $actions['edit'] = "" . __( 'Edit' ) . ''; - $actions['reply'] = ''; - $actions['spam'] = "" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . ''; + $actions['approve'] = sprintf( + '%s', + $approve_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=approved", + esc_attr__( 'Approve this comment' ), + __( 'Approve' ) + ); + + $actions['unapprove'] = sprintf( + '%s', + $unapprove_url, + "dim:the-comment-list:comment-{$comment->comment_ID}:unapproved:e7e7d3:e7e7d3:new=unapproved", + esc_attr__( 'Unapprove this comment' ), + __( 'Unapprove' ) + ); + + $actions['edit'] = sprintf( + '%s', + "comment.php?action=editcomment&c={$comment->comment_ID}", + esc_attr__( 'Edit this comment' ), + __( 'Edit' ) + ); + + $actions['reply'] = sprintf( + '', + $comment->comment_ID, + $comment->comment_post_ID, + esc_attr__( 'Reply to this comment' ), + __( 'Reply' ) + ); + + $actions['spam'] = sprintf( + '%s', + $spam_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::spam=1", + esc_attr__( 'Mark this comment as spam' ), + /* translators: "Mark as spam" link. */ + _x( 'Spam', 'verb' ) + ); if ( ! EMPTY_TRASH_DAYS ) { - $actions['delete'] = "" . __( 'Delete Permanently' ) . ''; + $actions['delete'] = sprintf( + '%s', + $delete_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", + esc_attr__( 'Delete this comment permanently' ), + __( 'Delete Permanently' ) + ); } else { - $actions['trash'] = "" . _x( 'Trash', 'verb' ) . ''; + $actions['trash'] = sprintf( + '%s', + $trash_url, + "delete:the-comment-list:comment-{$comment->comment_ID}::trash=1", + esc_attr__( 'Move this comment to the Trash' ), + _x( 'Trash', 'verb' ) + ); } - $actions['view'] = '' . __( 'View' ) . ''; + $actions['view'] = sprintf( + '%s', + esc_url( get_comment_link( $comment ) ), + esc_attr__( 'View this comment' ), + __( 'View' ) + ); /** * Filters the action links displayed for each comment in the 'Recent Comments' @@ -720,7 +771,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { // Comments might not have a post they relate to, e.g. programmatically created ones. if ( $comment_post_link ) { printf( - /* translators: 1: comment author, 2: post link, 3: notification if the comment is pending */ + /* translators: 1: Comment author, 2: Post link, 3: Notification if the comment is pending. */ __( 'From %1$s on %2$s %3$s' ), '' . get_comment_author_link( $comment ) . '', $comment_post_link, @@ -728,7 +779,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { ); } else { printf( - /* translators: 1: comment author, 2: notification if the comment is pending */ + /* translators: 1: Comment author, 2: Notification if the comment is pending. */ __( 'From %1$s %2$s' ), '' . get_comment_author_link( $comment ) . '', '' . __( '[Pending]' ) . '' @@ -757,7 +808,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { // Pingbacks, Trackbacks or custom comment types might not have a post they relate to, e.g. programmatically created ones. if ( $comment_post_link ) { printf( - /* translators: 1: type of comment, 2: post link, 3: notification if the comment is pending */ + /* translators: 1: Type of comment, 2: Post link, 3: Notification if the comment is pending. */ _x( '%1$s on %2$s %3$s', 'dashboard' ), "$type", $comment_post_link, @@ -765,7 +816,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { ); } else { printf( - /* translators: 1: type of comment, 2: notification if the comment is pending */ + /* translators: 1: Type of comment, 2: Notification if the comment is pending. */ _x( '%1$s %2$s', 'dashboard' ), "$type", '' . __( '[Pending]' ) . '' @@ -885,10 +936,10 @@ function wp_dashboard_recent_posts( $args ) { } elseif ( gmdate( 'Y-m-d', $time ) == $tomorrow ) { $relative = __( 'Tomorrow' ); } elseif ( gmdate( 'Y', $time ) !== $year ) { - /* translators: date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */ + /* translators: Date and time format for recent posts on the dashboard, from a different calendar year, see https://secure.php.net/date */ $relative = date_i18n( __( 'M jS Y' ), $time ); } else { - /* translators: date and time format for recent posts on the dashboard, see https://secure.php.net/date */ + /* translators: Date and time format for recent posts on the dashboard, see https://secure.php.net/date */ $relative = date_i18n( __( 'M jS' ), $time ); } @@ -898,10 +949,10 @@ function wp_dashboard_recent_posts( $args ) { $draft_or_post_title = _draft_or_post_title(); printf( '
  • %1$s %4$s
  • ', - /* translators: 1: relative date, 2: time */ + /* translators: 1: Relative date, 2: Time. */ sprintf( _x( '%1$s, %2$s', 'dashboard' ), $relative, get_the_time() ), $recent_post_link, - /* translators: %s: post title */ + /* translators: %s: Post title. */ esc_attr( sprintf( __( 'Edit “%s”' ), $draft_or_post_title ) ), $draft_or_post_title ); @@ -1146,7 +1197,7 @@ function wp_dashboard_events_news() { '%2$s %3$s', 'https://make.wordpress.org/community/meetups-landing-page', __( 'Meetups' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ); ?> @@ -1158,7 +1209,7 @@ function wp_dashboard_events_news() { '%2$s %3$s', 'https://central.wordcamp.org/schedule/', __( 'WordCamps' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ); ?> @@ -1171,7 +1222,7 @@ function wp_dashboard_events_news() { /* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */ esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ), __( 'News' ), - /* translators: accessibility text */ + /* translators: Accessibility text. */ __( '(opens in a new tab)' ) ); ?> @@ -1263,7 +1314,7 @@ function wp_print_community_events_templates() {