mirror of
git://develop.git.wordpress.org/
synced 2025-02-12 10:50:25 +01:00
Site Health: Minor i18n cleanup in page cache and persistent object cache tests.
Includes: * Moving leading and trailing spaces out of a translatable string. * Using the established format for translator comments. * Using a consistent typography for the apostrophe. Follow-up to [53955], [54043]. See #56041. git-svn-id: https://develop.svn.wordpress.org/trunk@54044 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6ff5bf856a
commit
1006729247
@ -1702,7 +1702,7 @@ class WP_Site_Health {
|
||||
$result['label'] = __( 'Unable to detect the presence of page cache' );
|
||||
$result['status'] = 'recommended';
|
||||
$error_info = sprintf(
|
||||
/* translators: 1 is error message, 2 is error code */
|
||||
/* translators: 1: Error message, 2: Error code. */
|
||||
__( 'Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: %1$s (Code: %2$s)' ),
|
||||
$page_cache_detail->get_error_message(),
|
||||
$page_cache_detail->get_error_code()
|
||||
@ -1737,14 +1737,14 @@ class WP_Site_Health {
|
||||
$threshold = $this->get_good_response_time_threshold();
|
||||
if ( $page_cache_detail['response_time'] < $threshold ) {
|
||||
$page_cache_test_summary[] = '<span class="dashicons dashicons-yes-alt"></span> ' . sprintf(
|
||||
/* translators: 1: The response time in milliseconds. 2: The recommended threshold milliseconds. */
|
||||
/* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
|
||||
__( 'Median server response time was %1$s milliseconds. This is less than the recommended %2$s milliseconds threshold.' ),
|
||||
number_format_i18n( $page_cache_detail['response_time'] ),
|
||||
number_format_i18n( $threshold )
|
||||
);
|
||||
} else {
|
||||
$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . sprintf(
|
||||
/* translators: 1: The response time in milliseconds. 2: The recommended threshold milliseconds. */
|
||||
/* translators: 1: The response time in milliseconds, 2: The recommended threshold in milliseconds. */
|
||||
__( 'Median server response time was %1$s milliseconds. It should be less than the recommended %2$s milliseconds threshold.' ),
|
||||
number_format_i18n( $page_cache_detail['response_time'] ),
|
||||
number_format_i18n( $threshold )
|
||||
@ -1755,8 +1755,8 @@ class WP_Site_Health {
|
||||
$page_cache_test_summary[] = '<span class="dashicons dashicons-warning"></span> ' . __( 'No client caching response headers were detected.' );
|
||||
} else {
|
||||
$headers_summary = '<span class="dashicons dashicons-yes-alt"></span>';
|
||||
$headers_summary .= sprintf(
|
||||
/* translators: Placeholder is number of caching headers */
|
||||
$headers_summary .= ' ' . sprintf(
|
||||
/* translators: %d: Number of caching headers. */
|
||||
_n(
|
||||
'There was %d client caching response header detected:',
|
||||
'There were %d client caching response headers detected:',
|
||||
@ -2410,7 +2410,7 @@ class WP_Site_Health {
|
||||
'label' => __( 'A persistent object cache is being used' ),
|
||||
'description' => sprintf(
|
||||
'<p>%s</p>',
|
||||
__( "A persistent object cache makes your site's database more efficient, resulting in faster load times because WordPress can retrieve your site's content and settings much more quickly." )
|
||||
__( 'A persistent object cache makes your site’s database more efficient, resulting in faster load times because WordPress can retrieve your site’s content and settings much more quickly.' )
|
||||
),
|
||||
'actions' => sprintf(
|
||||
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user