Site Health: Add missing i18n for Security and Performance badge labels.

Props iworks.
Fixes #46755. See #46683.

git-svn-id: https://develop.svn.wordpress.org/trunk@45095 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-04-02 10:07:36 +00:00
parent adfe5e271b
commit fbf73bc8de

View File

@ -182,7 +182,7 @@ class WP_Site_Health {
'label' => '', 'label' => '',
'status' => '', 'status' => '',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => '', 'description' => '',
@ -281,7 +281,7 @@ class WP_Site_Health {
'label' => __( 'Your plugins are up to date' ), 'label' => __( 'Your plugins are up to date' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -395,7 +395,7 @@ class WP_Site_Health {
'label' => __( 'Your themes are up to date' ), 'label' => __( 'Your themes are up to date' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -614,7 +614,7 @@ class WP_Site_Health {
), ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -702,7 +702,7 @@ class WP_Site_Health {
'label' => __( 'Required and recommended modules are installed' ), 'label' => __( 'Required and recommended modules are installed' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(
@ -901,7 +901,7 @@ class WP_Site_Health {
'label' => __( 'SQL server is up to date' ), 'label' => __( 'SQL server is up to date' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -979,7 +979,7 @@ class WP_Site_Health {
'label' => __( 'UTF8MB4 is supported' ), 'label' => __( 'UTF8MB4 is supported' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1094,7 +1094,7 @@ class WP_Site_Health {
'label' => __( 'Can communicate with WordPress.org' ), 'label' => __( 'Can communicate with WordPress.org' ),
'status' => '', 'status' => '',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1154,7 +1154,7 @@ class WP_Site_Health {
'label' => __( 'Your site is not set to output debug information' ), 'label' => __( 'Your site is not set to output debug information' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1207,7 +1207,7 @@ class WP_Site_Health {
'label' => __( 'Your website is using an active HTTPS connection.' ), 'label' => __( 'Your website is using an active HTTPS connection.' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1270,7 +1270,7 @@ class WP_Site_Health {
'label' => '', 'label' => '',
'status' => '', 'status' => '',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1316,7 +1316,7 @@ class WP_Site_Health {
'label' => __( 'Scheduled events are running' ), 'label' => __( 'Scheduled events are running' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1377,7 +1377,7 @@ class WP_Site_Health {
'label' => __( 'Background updates are working' ), 'label' => __( 'Background updates are working' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Security', 'label' => __( 'Security' ),
'color' => 'red', 'color' => 'red',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1453,7 +1453,7 @@ class WP_Site_Health {
'label' => __( 'Your site can perform loopback requests' ), 'label' => __( 'Your site can perform loopback requests' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1495,7 +1495,7 @@ class WP_Site_Health {
'label' => __( 'HTTP requests seem to be working as expected' ), 'label' => __( 'HTTP requests seem to be working as expected' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(
@ -1561,7 +1561,7 @@ class WP_Site_Health {
'label' => __( 'The REST API is available' ), 'label' => __( 'The REST API is available' ),
'status' => 'good', 'status' => 'good',
'badge' => array( 'badge' => array(
'label' => 'Performance', 'label' => __( 'Performance' ),
'color' => 'orange', 'color' => 'orange',
), ),
'description' => sprintf( 'description' => sprintf(